From fafa5dc3167534a6df6001597d966fcfa3a358e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=A5=E6=B5=B7?= Date: Tue, 7 Jul 2015 10:25:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=83=A8=E5=88=86=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ddnspod.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ddnspod.sh b/ddnspod.sh index e4906b5..fc87d0c 100644 --- a/ddnspod.sh +++ b/ddnspod.sh @@ -15,20 +15,20 @@ arPass=arMail="" # 获得外网地址 arIpAdress() { local inter="http://members.3322.org/dyndns/getip" - wget --quiet --no-check-certificate --output-document=- $inter + wget --quiet --output-document=- $inter } # 查询域名地址 # 参数: 待查询域名 arNslookup() { - local dnsvr="http://119.29.29.29/d?dn=" - wget --quiet --no-check-certificate --output-document=- $dnsvr$1 + local inter="http://119.29.29.29/d?dn=" + wget --quiet --output-document=- $inter$1 } # 读取接口数据 # 参数: 接口类型 待提交数据 arApiPost() { - local agent="AnripDdns/3.08(mail@anrip.com)" + local agent="AnripDdns/5.07(mail@anrip.com)" local inter="https://dnsapi.cn/${1:?'Info.Version'}" local param="login_email=${arMail}&login_password=${arPass}&format=json&${2}" wget --quiet --no-check-certificate --output-document=- --user-agent=$agent --post-data $param $inter