Closed vintonliu closed 7 years ago
源码在getgateway.c中, 仅在宏USE_SYSCTL_NET_ROUTE中实现了一份getdefaeultgateway6. 此宏在Linux, BSD, Windows上并未定义, Apple(ios, mac)上有定义.
getgateway.c
USE_SYSCTL_NET_ROUTE
getdefaeultgateway6
Linux
BSD
Windows
Apple(ios, mac)
故可认为仅在Apple平台上支持了此功能, 为了通过Appstore的审核...
Apple
注: 参考代码 Mars(https://github.com/Tencent/mars)
@wangyoucao577 已经在网上找了相关资料,实现了。
源码在
getgateway.c
中, 仅在宏USE_SYSCTL_NET_ROUTE
中实现了一份getdefaeultgateway6
. 此宏在Linux
,BSD
,Windows
上并未定义,Apple(ios, mac)
上有定义.故可认为仅在
Apple
平台上支持了此功能, 为了通过Appstore的审核...注: 参考代码 Mars(https://github.com/Tencent/mars)