NewFuture / DDNS

:triangular_flag_on_post: 自动更新域名解析到本机IP(支持dnspod,阿里DNS,CloudFlare,华为云,DNSCOM...)
https://ddns.newfuture.cc/
MIT License
4.23k stars 650 forks source link

[debug]在openwrt/lede下运行出错 #243

Closed zxbiao closed 1 year ago

zxbiao commented 3 years ago

Describe the bug [描述]

在在openwrt/lede下运行出错

To Reproduce [复现]

version info [基本信息]

config file [配置文件]

{
{
  "$schema": "https://ddns.newfuture.cc/schema/v2.8.json",
  "debug": true,
  "dns": "cloudflare",
  "id": "",
  "index4": "public",
  "index6": "public",
  "ipv4": [
    "ddns.*****.info",
    "ipv4.ddns.*****.info"
  ],
  "ipv6": [
    "ddns.*****.info",
    "ipv6.ddns.*****.info"
  ],
  "proxy": null,
  "token": "*************************",
  "ttl": 600
}
}

debug output [调试输出]

root@NETGEAR_WNDR4300V2:/home/# ./ddns
./ddns: line 1: --2021-04-05: not found
./ddns: line 2: Resolving: not found
./ddns: ./ddns: line 3: :443...: not found
./ddns: line 3: 13.250.177.223: not found
line 3: Connecting: not found
./ddns: line 4: HTTP: not found
./ddns: ./ddns: line 5: X-Amz-Date=20210405T125801Z: not found
./ddns: line 5: X-Amz-Expires=300: not found
./ddns: line 5: X-Amz-Signature=77aab70d6791e4490a84a29d04fac0ba3d2288c4c74fccb8                                                                                                                                                             e640cce2783c5183: not found
./ddns: line 5: X-Amz-SignedHeaders=host: not found
./ddns: line 5: X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210405%2Fus-east-1%2Fs                                                                                                                                                             3%2Faws4_request: not found
./ddns: ./ddns: line 5: Location:: not found
line 5: response-content-type=application%2Foctet-stream: not found
line 5: response-content-disposition=attachment%3B%20filename%3Dddns: not found
./ddns: ./ddns: ./ddns: ./ddns: line 6: --2021-04-05: not found
line 6: X-Amz-Date=20210405T125801Z: not found
./ddns: line 6: X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210405%2Fus-east-1%2Fs                                                                                                                                                             3%2Faws4_request: not found
line 6: X-Amz-Expires=300: not found
./ddns: line 6: X-Amz-Signature=77aab70d6791e4490a84a29d04fac0ba3d2288c4c74fccb8                                                                                                                                                             e640cce2783c5183: not found
./ddns: line 6: line 6: response-content-disposition=attachment%3B%20filename%3D                                                                                                                                                             ddns: not foundresponse-content-type=application%2Foctet-stream: not found

./ddns: ./ddns: line 7: Resolving: not found
line 6: X-Amz-SignedHeaders=host: not found
./ddns: ./ddns: ./ddns: line 8: :443...: not found
line 8: 185.199.109.154: not found
line 8: Connecting: not found
./ddns: line 9: HTTP: not found
./ddns: line 10: syntax error: unexpected "("

Additional context

NewFuture commented 3 years ago
  1. 输出来看这个文件有问题,可能下载方式不对?
  2. 目前没有编译 openwrt 版的下载 Ubuntu版的很可能也不好使(没试过)
zxbiao commented 3 years ago
  1. 输出来看这个文件有问题,可能下载方式不对?
  2. 目前没有编译 openwrt 版的下载 Ubuntu版的很可能也不好使(没试过)

感谢答疑 会考虑增加openwrt/LEDE的支持么?

NewFuture commented 3 years ago

我这没有这个测试环境,感兴趣的话可以编译试试 或者直接pip安装python版的

ZirrorDmage commented 3 years ago

我当前使用openwrt 19.07.6,通过opkg安装Python3,能够直接使用run.py实现阿里云ddns

NewFuture commented 1 year ago

合并到 #139