OpenIoTHub / aliddns

aliyun ddns for golang【阿里云DDNS服务,用来将自己的动态IP同步到自己的域名解析服务器,安装方便,配置简单,默认支持Linux和MacOS以后台服务方式持续运行】

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

get public ipv4 err

jeffreyhu3 opened this issue · comments

I use snap version in my NAS server, the ddns work very well, but often get some err see below. These logs get from command "snap logs aliddns -f". Is there any way to change method get public IP such as replacement "http://members.3322.org/dyndns/getip"

2021-08-11T01:55:08Z aliddns.aliddns[18309]: 2021/08/11 09:55:08 get public ipv4 err:Get "http://members.3322.org/dyndns/getip": EOF
2021-08-11T01:55:38Z aliddns.aliddns[18309]: 2021/08/11 09:55:38 get public ipv4 err:Get "http://ifconfig.me/ip": dial tcp 34.117.59.81:80: i/o timeout

code here:

var Ipv4APIUrls = []string{

var Ipv6APIUrls = []string{

I will adjust the order and release a new version.
The same server may have different responses in different countries.

Could you please add a custom configuration in aliddns.yaml for Ipv4APIUrls? such as "http://whatismyip.akamai.com" is faster and stable compare with "http://members.3322.org/dyndns/getip"

Could you please add a custom configuration in aliddns.yaml for Ipv4APIUrls? such as "http://whatismyip.akamai.com" is faster and stable compare with "http://members.3322.org/dyndns/getip"

"http://whatismyip.akamai.com",

already in list

"http://whatismyip.akamai.com",

"http://whatismyip.akamai.com" first now @v0.0.11