aliyun-ddns-client icon indicating copy to clipboard operation
aliyun-ddns-client copied to clipboard

[BUGFIX] ipv6 check if lan

Open RainGather opened this issue 3 years ago • 2 comments

某些情况下ni.ifaddresses(ifname)[ni.AF_INET6][0]会获取fe80的内网ipv6地址,通过一个for循环判断是否内网地址来去除内网地址的影响。

RainGather avatar Jun 10 '21 10:06 RainGather

utils.py中的get_dns_resolved_ip函数没有处理ipv6的情况,已添加相关代码修复。

RainGather avatar Jun 10 '21 10:06 RainGather

除了prefix为fe80,还会出现prefix为fd03的地址,建议正泽涵盖所有local address type

fe8x
fecx
fdxx

相关文档:https://tldp.org/HOWTO/Linux+IPv6-HOWTO/ch03s02.html

iaurman avatar Jul 12 '22 16:07 iaurman