diff --git a/usr/local/lib/network.bash b/usr/local/lib/network.bash index ea34490..7bb3ce5 100644 --- a/usr/local/lib/network.bash +++ b/usr/local/lib/network.bash @@ -46,6 +46,8 @@ declare -g NETWORK_LOG_FILE declare -g NETWORK_LOG_LOCK #declare -g NETWORK_LOG_LOCK="${NETWORK_LOG_FILE}" +declare -g NETWORK_NC_TIMEOUT + @@ -820,7 +822,7 @@ network_dst_address_refresh() local proxy_port=8080 - dst_ip_new=$( nc -w 5 ${proxy_host} ${proxy_port}) + dst_ip_new=$( nc -w ${NETWORK_NC_TIMEOUT} ${proxy_host} ${proxy_port}) if is_valid_ip ${dst_ip_new} then