mirror of
https://github.com/fosrl/olm.git
synced 2026-10-29 23:19:11 +01:00
update route removal to include source IP for exit node and peer management
This commit is contained in:
+1
-1
@@ -285,7 +285,7 @@ func (pm *PeerManager) RemovePeer(siteId int) error {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := network.RemoveRouteForServerIP(peer.ServerIP, pm.interfaceName); err != nil {
|
||||
if err := network.RemoveRouteForServerIPWithSource(peer.ServerIP, pm.interfaceName, pm.localIP); err != nil {
|
||||
logger.Error("Failed to remove route for server IP: %v", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user