Explorar o código

Remove managed routes in destructor (regression fix).

Adam Ierymenko %!s(int64=3) %!d(string=hai) anos
pai
achega
fabfb10b97
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      osdep/ManagedRoute.cpp

+ 3 - 1
osdep/ManagedRoute.cpp

@@ -405,7 +405,9 @@ ManagedRoute::ManagedRoute(const InetAddress &target,const InetAddress &via,cons
 }
 
 ManagedRoute::~ManagedRoute()
-{}
+{
+	this->remove();
+}
 
 /* Linux NOTE: for default route override, some Linux distributions will
  * require a change to the rp_filter parameter. A value of '1' will prevent