Remove managed routes in destructor (regression fix).

This commit is contained in:
Adam Ierymenko 2021-11-15 19:48:07 -05:00
parent 65549cb0da
commit fabfb10b97
No known key found for this signature in database
GPG Key ID: C8877CF2D7A5D7F3

View File

@ -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