fix: deleteRoutePrefix incorrectly called insertRoute for specific prefixes

This commit is contained in:
cd-amn
2026-05-13 16:04:15 +04:00
parent 234c70f495
commit cc469e74ed
@@ -338,7 +338,7 @@ bool WireguardUtilsLinux::deleteRoutePrefix(const IPAddress& prefix) {
return false;
}
if (prefix.prefixLength() > 0) {
return m_rtmonitor->insertRoute(prefix);
return m_rtmonitor->deleteRoute(prefix);
}
// Ensure that we do not replace the default route.