更新部分参数
This commit is contained in:
1 parent
e9757e33e0
commit
fafa5dc316
1 file changed
+4
-4
+4
-4
@@ -15,20 +15,20 @@ arPass=arMail=""
|
|||||||
# 获得外网地址
|
# 获得外网地址
|
||||||
arIpAdress() {
|
arIpAdress() {
|
||||||
local inter="http://members.3322.org/dyndns/getip"
|
local inter="http://members.3322.org/dyndns/getip"
|
||||||
wget --quiet --no-check-certificate --output-document=- $inter
|
wget --quiet --output-document=- $inter
|
||||||
}
|
}
|
||||||
|
|
||||||
# 查询域名地址
|
# 查询域名地址
|
||||||
# 参数: 待查询域名
|
# 参数: 待查询域名
|
||||||
arNslookup() {
|
arNslookup() {
|
||||||
local dnsvr="http://119.29.29.29/d?dn="
|
local inter="http://119.29.29.29/d?dn="
|
||||||
wget --quiet --no-check-certificate --output-document=- $dnsvr$1
|
wget --quiet --output-document=- $inter$1
|
||||||
}
|
}
|
||||||
|
|
||||||
# 读取接口数据
|
# 读取接口数据
|
||||||
# 参数: 接口类型 待提交数据
|
# 参数: 接口类型 待提交数据
|
||||||
arApiPost() {
|
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 inter="https://dnsapi.cn/${1:?'Info.Version'}"
|
||||||
local param="login_email=${arMail}&login_password=${arPass}&format=json&${2}"
|
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
|
wget --quiet --no-check-certificate --output-document=- --user-agent=$agent --post-data $param $inter
|
||||||
|
|||||||
Reference in new issue
Block a user