Add NETWORK_NC_TIMEOUT config variable.
This commit is contained in:
@@ -46,6 +46,8 @@ declare -g NETWORK_LOG_FILE
|
|||||||
declare -g NETWORK_LOG_LOCK
|
declare -g NETWORK_LOG_LOCK
|
||||||
#declare -g NETWORK_LOG_LOCK="${NETWORK_LOG_FILE}"
|
#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
|
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}
|
if is_valid_ip ${dst_ip_new}
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user