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] #265

Closed xiaobinxxx closed 3 years ago

xiaobinxxx commented 3 years ago

Describe the bug [描述]

源码环境运行出错,不知道什么原因,是我配置错了吗?

To Reproduce [复现]

version info [基本信息]

源码运行出错

config file [配置文件]

{
  "$schema": "https://ddns.newfuture.cc/schema/v2.8.json", 
  "debug": false, 
  "dns": "alidns", 
  "id": "xxxx", 
  "index4": "public", 
  "index6": "default", 
  "ipv4": [
    "nw.fghdf.top", 
    "nwbt.fghdf.top"
  ], 
  "ipv6": [
    "nw.fghdf.top", 
    "nwbt.fghdf.top"
  ], 
  "proxy": "127.0.0.1:1080;DIRECT", 
  "token": "xxxx", 
  "ttl": 600
}

debug output [调试输出]

Traceback (most recent call last):
  File "./run.py", line 199, in <module>
    main()
  File "./run.py", line 195, in main
    update_ip('6', cache, dns, proxy_list)
  File "./run.py", line 139, in update_ip
    address = get_ip(ip_type, index_rule)
  File "./run.py", line 109, in get_ip
    value = getattr(ip, index + "_v" + ip_type)()
  File "/DDNS/util/ip.py", line 31, in default_v6
    s.connect(('1:1:1:1:1:1:1:1', 8))
  File "/usr/lib64/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 101] Network is unreachable

Additional context

NewFuture commented 3 years ago

运行的机器没用ipv6网络?