NewFuture / DDNS

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

[debug]urlopen error [Errno 111] Connection refused #355

Closed Yut-jing closed 1 year ago

Yut-jing commented 1 year ago

描述问题 (Describe the bug)

版本信息 (version info)

复现步骤 (To Reproduce)

配置文件 (config file)

{
  "$schema": "https://ddns.newfuture.cc/schema/v2.8.json",
  "debug": true,
  "dns": "cloudflare",
  "id": "XXXXXX@outlook.com",
  "index4": "public",
  "index6": "default",
  "ipv4": [
    "XXXXX.COM"
  ],
  "ipv6": [
  ],
  "proxy": null,
  "token": "XXXXXXXXXXX",
  "ttl": null
}

调试输出 (debug output)


粘贴输出日志
paste out put here
DDNS[ ${BUILD_VERSION}@${BUILD_DATE} ] run: posix linux
Configuration was loaded from <== /root/ddns/config.json
========================= Mon Sep 19 16:28:50 2022 =========================
2022-09-19 16:28:50,867 <cache.load> 48@/root/ddns/util/cache.py 
[DEBUG] load cache data from /tmp/ddns.cache
2022-09-19 16:28:50,868 <run.main> 146@./run.py 
[WARNING] Cache file is out of dated.
2022-09-19 16:28:50,868 <ip._open> 51@/root/ddns/util/ip.py 
[DEBUG] open: https://pv.sohu.com/cityjson?ie=utf-8
2022-09-19 16:28:50,963 <ip._open> 58@/root/ddns/util/ip.py 
[ERROR] <urlopen error [Errno 111] Connection refused>
2022-09-19 16:28:50,963 <run.update_ip> 101@./run.py 
[ERROR] Fail to get ipv4 address!
2022-09-19 16:28:50,970 <cache.sync> 85@/root/ddns/util/cache.py 
[DEBUG] save cache data to /tmp/ddns.cache

## 补充说明 (Additional context)
<!-- Add any other context about the problem here. -->

public的查询模式失效
laozhoubuluo commented 1 year ago

根据 #367 反馈,这个接口挂了,请按照以下代码修改 config.json 配置文件即可解决:

{
...
  "index4": "url:https://myip4.ipip.net/",
  "index6": "url:https://myip6.ipip.net/",
...
}