update macos command for default route poker.

pull/1319/head
jeff 4 years ago committed by Jeff Becker
parent 528340e056
commit 099831719a
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

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

Loading…
Cancel
Save