sirpdboy / luci-app-ddns-go

luci-app-ddns-go 自动获得你的公网 IPv4 或 IPv6 地址,并解析到对应的域名服务。支持的域名服务商 Alidns(阿里云) Dnspod(腾讯云) Cloudflare 华为云 Callback 百度云 porkbun GoDaddy
512 stars 74 forks source link

请求接口失败401 Authorization Required #54

Closed kerongw closed 10 months ago

kerongw commented 10 months ago

设备:r2s 系统:istoreos最新版

2024/02/04 12:46:31 可使用 sudo ./ddns-go -s install 安装服务运行
2024/02/04 12:46:31 第一次运行将等待 20 秒后运行 (等待网络)
2024/02/04 12:46:31 监听 :9876 ...
2024/02/04 12:46:51 请求接口 https://dnsapi.cn/Record.List 失败! 返回内容:
401 Authorization Required
nginx
,返回状态码: 401

配置

ipv4:
    enable: false
    gettype: url
    url: https://myip4.ipip.net, https://ddns.oray.com/checkip, https://ip.3322.net
    netinterface: ""
    domains:
        - ""
ipv6:
    enable: true
    gettype: url
    url: https://myip6.ipip.net, https://speed.neu6.edu.cn/getIP.php, https://v6.ident.me
    netinterface: pppoe-wan
    ipv6reg: ""
    domains:
        - xxxx.com
dns:
    name: dnspod
    id: xxxxxx
    secret: xxxxx
user:
    username: ""
    password: ""
webhook:
    webhookurl: https://www.pushplus.plus/send
    webhookrequestbody: "{\r\n    \"token\": \"xxxx\",\r\n    \"title\": \"ipv6 ......\",\r\n    \"content\": \"......IP...... \\n - IPv6.........#{ipv6Addr} \\n - .....................#{ipv6Result} \\
notallowwanaccess: true
ttl: ""
kerongw commented 10 months ago

id 和 秘钥填错了