diff --git a/net/ddns-scripts/files/dynamic_dns_functions.sh b/net/ddns-scripts/files/dynamic_dns_functions.sh index 7128807a..7dbdb20e 100755 --- a/net/ddns-scripts/files/dynamic_dns_functions.sh +++ b/net/ddns-scripts/files/dynamic_dns_functions.sh @@ -80,7 +80,12 @@ WGET_SSL=$(which wget-ssl) CURL=$(which curl) # CURL_PROXY not empty then Proxy support available -CURL_PROXY=$(find /lib /usr/lib -name libcurl.so* -exec strings {} 2>/dev/null \; | grep -im1 "all_proxy") +if [ -f /tmp/vCURL_PROXY ]; then + CURL_PROXY=$(cat /tmp/vCURL_PROXY); +else + CURL_PROXY=$(find /lib /usr/lib -name libcurl.so* -exec strings {} 2>/dev/null \; | grep -im1 "all_proxy") + echo $CURL_PROXY>/tmp/vCURL_PROXY +fi UCLIENT_FETCH=$(which uclient-fetch)