From 1bc57b2de566c7d8bcea8771e6f7430e16809468 Mon Sep 17 00:00:00 2001 From: duanego <33107702+duanego@users.noreply.github.com> Date: Mon, 14 Oct 2019 11:32:13 +0800 Subject: [PATCH] Update ddnspod.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复了不能解析泛域名的bug --- ddnspod.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ddnspod.sh b/ddnspod.sh index 4b2857b..10c72c0 100755 --- a/ddnspod.sh +++ b/ddnspod.sh @@ -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