diff --git a/daemon/lokinet-vpn.cpp b/daemon/lokinet-vpn.cpp index 9fc5a385a..010a3ebd7 100644 --- a/daemon/lokinet-vpn.cpp +++ b/daemon/lokinet-vpn.cpp @@ -362,7 +362,7 @@ AddDefaultRouteViaInterface(std::string ifname) Execute("route ADD 0.0.0.0 MASK 128.0.0.0 " + ifname); Execute("route ADD 128.0.0.0 MASK 128.0.0.0 " + ifname); #elif __APPLE__ - Execute("route -n add -net 0.0.0.0 -interface " + ifname); + Execute("route -cloning add -net 0.0.0.0 -netmask 0.0.0.0 -interface " + ifname); #else #error unsupported platform #endif @@ -378,7 +378,7 @@ DelDefaultRouteViaInterface(std::string ifname) Execute("route DELETE 0.0.0.0 MASK 128.0.0.0 " + ifname); Execute("route DELETE 128.0.0.0 MASK 128.0.0.0 " + ifname); #elif __APPLE__ - Execute("route -n delete -net 0.0.0.0 -interface " + ifname); + Execute("route -cloning delete -net 0.0.0.0 -netmask 0.0.0.0 -interface " + ifname); #else #error unsupported platform #endif