Explicitly use ipv4 address for querying ddns api
This commit is contained in:
1 parent
378bf9c4eb
commit
4a0dedcfab
1 file changed
+2
-2
@@ -114,9 +114,9 @@ arDdnsApi() {
|
|||||||
local params="login_token=$arToken&format=json&lang=en&$2"
|
local params="login_token=$arToken&format=json&lang=en&$2"
|
||||||
|
|
||||||
if type curl >/dev/null 2>&1; then
|
if type curl >/dev/null 2>&1; then
|
||||||
curl -s -A $agent -d $params $dnsapi
|
curl -4 -s -A $agent -d $params $dnsapi
|
||||||
else
|
else
|
||||||
wget -q -O- --no-check-certificate -U $agent --post-data $params $dnsapi
|
wget -4 -q -O- --no-check-certificate -U $agent --post-data $params $dnsapi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user