From bf2152bac8283edb9b0e51082b4942e618c42b2a Mon Sep 17 00:00:00 2001 From: Linus Dierheimer Date: Wed, 12 Jan 2022 19:16:49 +0100 Subject: [PATCH] Disable public ip timeout by default --- src/common/init.c | 2 +- src/data/config.txt | 5 ++--- src/data/help.txt | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/common/init.c b/src/common/init.c index f79f0de5d..5777a01fa 100644 --- a/src/common/init.c +++ b/src/common/init.c @@ -199,7 +199,7 @@ static void defaultConfig(FFinstance* instance) instance->config.localIpShowIpV6 = false; instance->config.localIpShowLoop = false; - instance->config.publicIpTimeout = 250; + instance->config.publicIpTimeout = 0; } void ffInitInstance(FFinstance* instance) diff --git a/src/data/config.txt b/src/data/config.txt index 2893f56cf..f99eff661 100644 --- a/src/data/config.txt +++ b/src/data/config.txt @@ -123,9 +123,8 @@ # Public IP timeout option: # Sets the time to wait for the public ip server to respond. # Must be a positive integer. -# Set to 0 to disable timeout. -# Default is 250. -#--public-ip-timeout 250 +# Default is 0 (disabled). +#--public-ip-timeout 0 # Key options: # Sets the displayed key of a module diff --git a/src/data/help.txt b/src/data/help.txt index 3f3879a1d..77fb85b29 100644 --- a/src/data/help.txt +++ b/src/data/help.txt @@ -111,7 +111,7 @@ Module specific options: --localip-show-ipv4 : Show ipv4 addresses in local ip module. Default is true --localip-show-ipv6 : Show ipv6 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 - --public-ip-timeout: Time in milliseconds to wait for the public ip server to respond. Default is 250. Set to 0 to disable timeout. + --public-ip-timeout: Time in milliseconds to wait for the public ip server to respond. Default is disabled (0) Parsing is not case sensitive. E.g. "--lib-PCI" is equal to "--Lib-Pci" If a value starts with a ?, it is optional. "true" will be used if not set.