diff --git a/src/data/help.txt b/src/data/help.txt index 27f29d6a3..7d5d1b9c6 100644 --- a/src/data/help.txt +++ b/src/data/help.txt @@ -162,10 +162,10 @@ Module specific options: --localip-show-mac : Show mac addresses in local ip module. Default is false --localip-show-loop : Show loop back addresses (127.0.0.1) in local ip module. Default is false --localip-name-prefix : Show interfaces with given interface name prefix only. Default is empty - --localip-default-route-only : Show the interface that is used for default routing only. Default is true + --localip-default-route-only : Show the interface that is used for default routing only. Default is true on non-android platforms --localip-compact : Show all IPs in one line. Default is false --netio-name-prefix : Show interfaces with given name prefix only. Default is empty - --netio-default-route-only : Show the interfac that is used for default routing only. Default is true + --netio-default-route-only : Show the interfac that is used for default routing only. Default is true on non-android platforms --publicip-timeout : Time in milliseconds to wait for the public ip server to respond. Default is disabled (0) --publicip-url : The URL of public IP detection server to be used. --weather-location : Set the location to be used. It must be URI encoded (eg a whitespace must be encoded as `+`). diff --git a/src/modules/localip/localip.c b/src/modules/localip/localip.c index 4d2150f8d..f9a2d475c 100644 --- a/src/modules/localip/localip.c +++ b/src/modules/localip/localip.c @@ -370,7 +370,13 @@ void ffInitLocalIpOptions(FFLocalIpOptions* options) options->showType = FF_LOCALIP_TYPE_IPV4_BIT; ffStrbufInit(&options->namePrefix); - options->defaultRouteOnly = true; + options->defaultRouteOnly = + #ifdef __ANDROID__ + false + #else + true + #endif + ; } void ffDestroyLocalIpOptions(FFLocalIpOptions* options) diff --git a/src/modules/netio/netio.c b/src/modules/netio/netio.c index 6105e52ef..df76fde5f 100644 --- a/src/modules/netio/netio.c +++ b/src/modules/netio/netio.c @@ -230,7 +230,13 @@ void ffInitNetIOOptions(FFNetIOOptions* options) ffOptionInitModuleArg(&options->moduleArgs); ffStrbufInit(&options->namePrefix); - options->defaultRouteOnly = true; + options->defaultRouteOnly = + #ifdef __ANDROID__ + false + #else + true + #endif + ; } void ffDestroyNetIOOptions(FFNetIOOptions* options)