Explorar el Código

Remove managed routes in destructor (regression fix).

Adam Ierymenko hace 3 años
padre
commit
fabfb10b97
Se han modificado 1 ficheros con 3 adiciones y 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