Browse Source

Remove managed routes in destructor (regression fix).

Adam Ierymenko 3 năm trước cách đây
mục cha
commit
fabfb10b97
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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