Closed notaganin closed 2 years ago
我在Usage看到If a domain is passed, the resolver will try to resolve and update the ip address regularly, ipv4 is preferred,请问如何设置成ipv6优先?
If a domain is passed, the resolver will try to resolve and update the ip address regularly, ipv4 is preferred
其实这个也算是一个bug.如果解析域名时优先ipv4,中转机用的是ipv6,就无法中转流量到落地机
现在不能设置解析的优先级,欢迎PR。
这个问题只会出现在v4/v6双栈的机器上吧。(还是说只有IPv6的机器也能解析到A记录?)
如果要改DNS部分的话我建议做成ss-rust那样,用一个enum 涵盖IP地址/域名,避免每次发起连接/解析域名都要来回解析/拼接字符串
我在Usage看到
If a domain is passed, the resolver will try to resolve and update the ip address regularly, ipv4 is preferred
,请问如何设置成ipv6优先?