Update ddnspod.sh
修复了不能解析泛域名的bug
This commit is contained in:
1 parent
1d6fbbee8e
commit
1bc57b2de5
1 file changed
+2
-2
+2
-2
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user