Update ddnspod.sh

修复了不能解析泛域名的bug
This commit is contained in:
duanego authored and GitHub committed 2019-10-14 11:32:13 +08:00
1 parent 1d6fbbee8e
commit 1bc57b2de5
1 file changed
+2 -2
+2 -2
View File
@@ -133,11 +133,11 @@ arDdnsCheck() {
local hostIP=$(arIpAddress)
echo "Updating Domain: $2.$1"
echo "hostIP: $hostIP"
lastIP=$(arDdnsInfo $1 $2)
lastIP=$(arDdnsInfo "$1" "$2")
if [ $? -eq 0 ]; then
echo "lastIP: $lastIP"
if [ "$lastIP" != "$hostIP" ]; then
postRS=$(arDdnsUpdate $1 $2)
postRS=$(arDdnsUpdate "$1" "$2")
if [ $? -eq 0 ]; then
echo "postRS: $postRS"
return 0