- Fix network_dst_address_refresh() crash when trying to reset ip address.
This commit is contained in:
1 parent
6317958572
commit
8756db075e
3 files changed
+14
-3
No files matched your search
@@ -1146,8 +1146,8 @@ network_dst_address_refresh()
|
||||
then
|
||||
if [[ ( ( "${dst_ip}" != "0.0.0.0") && ( "${dst_status}" != 1)) ]]
|
||||
then
|
||||
log_info "Network" "Reseting IP: [${dst_host_name}]: IP: [${dst_ip_new}] Status: (${dst_status})"
|
||||
dst_ip_new="0.0.0.0"
|
||||
log_info "Network" "Reseting IP: [${dst_host_name}]: IP: [${dst_ip_new}] Status: (${dst_status})"
|
||||
else
|
||||
dst_ip_new="$( nc -w "${NETWORK_NC_TIMEOUT}" "${proxy_host}" "${proxy_port}" 2>/dev/null)" || true
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user