LocalIP (Android): tidy

This commit is contained in:
李通洲
2023-07-19 13:57:26 +08:00
committed by 李通洲
parent f1ebcd7c31
commit e48a7aa92f
+1 -1
View File
@@ -17,7 +17,7 @@
#include <netpacket/packet.h>
#endif
#if defined(__linux__) || defined(__ANDROID__)
#if defined(__linux__)
static bool getDefaultRoute(char iface[IF_NAMESIZE + 1])
{
FILE* FF_AUTO_CLOSE_FILE netRoute = fopen("/proc/net/route", "r");