From b76a23a9c7757d4666f0f2fdad2da577943f3df9 Mon Sep 17 00:00:00 2001 From: "Arnaud G. GIBERT" Date: Fri, 25 Jul 2025 14:20:05 +0200 Subject: [PATCH] Add NETWORK_NC_TIMEOUT config variable. --- usr/local/lib/network.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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