Merge pull request #36 from duanego/patch-1

修复泛域名解析
This commit is contained in:
若海 authored and GitHub committed 2019-10-14 11:45:59 +08:00
commit f949dda4f2
1 file changed
+2 -2
+2 -2
View File
@@ -133,11 +133,11 @@ arDdnsCheck() {
local hostIP=$(arIpAddress) local hostIP=$(arIpAddress)
echo "Updating Domain: $2.$1" echo "Updating Domain: $2.$1"
echo "hostIP: $hostIP" echo "hostIP: $hostIP"
lastIP=$(arDdnsInfo $1 $2) lastIP=$(arDdnsInfo "$1" "$2")
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo "lastIP: $lastIP" echo "lastIP: $lastIP"
if [ "$lastIP" != "$hostIP" ]; then if [ "$lastIP" != "$hostIP" ]; then
postRS=$(arDdnsUpdate $1 $2) postRS=$(arDdnsUpdate "$1" "$2")
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo "postRS: $postRS" echo "postRS: $postRS"
return 0 return 0