mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-20 02:00:55 +07:00
fix: deleteRoutePrefix incorrectly called insertRoute for specific prefixes
This commit is contained in:
@@ -338,7 +338,7 @@ bool WireguardUtilsLinux::deleteRoutePrefix(const IPAddress& prefix) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (prefix.prefixLength() > 0) {
|
if (prefix.prefixLength() > 0) {
|
||||||
return m_rtmonitor->insertRoute(prefix);
|
return m_rtmonitor->deleteRoute(prefix);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure that we do not replace the default route.
|
// Ensure that we do not replace the default route.
|
||||||
|
|||||||
Reference in New Issue
Block a user