Simple and easy to use DDNS. Support Aliyun, Tencent Cloud, Dnspod, Cloudflare, Callback, Huawei Cloud, Baidu Cloud, Porkbun, GoDaddy, Namecheap, NameSilo...
12.35k
stars
1.41k
forks
source link
增加 #{ipType} 功能,方便Callback调用URL时选择 #802
Closed
o2asdv closed 1 year ago
功能描述
增加 #{ipType} 功能,方便Callback调用URL时选择。
如:https://dynv6.com/api/update?hostname=#{domain}&token=XXXXXXX&ipv#{ipType}=#{ip}
ipType的值为:4或6
解决的问题
修改代码:dns/callback.go (108行后,for之前添加) 增加内容 if recordType == "A" { orgPara = strings.ReplaceAll(orgPara, "#{ipType}", "4") } else if recordType == "AAAA" { orgPara = strings.ReplaceAll(orgPara, "#{ipType}", "6") }
附加信息
No response
检查清单