Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update ddnspod.sh
修复了不能解析泛域名的bug
  • Loading branch information
duanego committed Oct 14, 2019
1 parent 1d6fbbe commit 1bc57b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ddnspod.sh
Expand Up @@ -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
Expand Down

0 comments on commit 1bc57b2

Please sign in to comment.