Merge pull request #111 from Vigilans/vigilans/ddns-api-use-ipv4

Explicitly use ipv4 address for querying ddns api
This commit is contained in:
rehiy authored and GitHub committed 2022-08-24 17:44:14 +08:00
commit f04fddb133
1 file changed
+2 -2
+2 -2
View File
@@ -120,9 +120,9 @@ arDdnsApi() {
local params="login_token=$arToken&format=json&lang=en&$2"
if type curl >/dev/null 2>&1; then
curl -s -A $agent -d $params $dnsapi
curl -4 -s -A $agent -d $params $dnsapi
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
}