Explicitly use ipv4 address for querying ddns api

This commit is contained in:
Vigilans committed 2022-08-23 11:08:31 +08:00
1 parent 378bf9c4eb
commit 4a0dedcfab
1 file changed
+2 -2
+2 -2
View File
@@ -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
} }