We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v5.3.1
ubantu/apline Docker
在上游服务器中使用- addr: "2620:fe::fe" 格式配置,会将最后的 :fe 识别为端口,导致错误 如果 将IPv6地址加上括号后,- addr: "[2620:fe::fe]",服务器地址识别正常,其它的IPv6地址不加 [] 均能正常识别
- tag: forward_remote type: forward args: concurrent: 3 upstreams: - addr: "https://dns10.quad9.net/dns-query" # Quad9 DNS - addr: "2620:fe::fe" # Quad9 IPv6 DNS - addr: "2620:fe::9" # Quad9 IPv6 DNS
failed to init plugin: failed to init upstream #5: invalid server address, parse "udp://2620:fe::fe": invalid port ":fe" after host
The text was updated successfully, but these errors were encountered:
mosdns/pkg/upstream/utils.go
Lines 61 to 75 in a281fdb
代码应该是这一块。但似乎不加方括号的v6并不能正确识别,只是最后一段是数字的话不会触发报错
Sorry, something went wrong.
直接把IPv6写进DoH的URL也有一样的问题,需要补上端口号才能正常使用,这种写法https://[2606:4700:4700::1111]/dns-query会报证书错误 目前能使用的写法:https://[2606:4700:4700::1111]:443/dns-query
No branches or pull requests
在提交之前,请确认
mosdns 版本
v5.3.1
操作系统
ubantu/apline Docker
Bug 描述和复现步骤
在上游服务器中使用- addr: "2620:fe::fe" 格式配置,会将最后的 :fe 识别为端口,导致错误
如果 将IPv6地址加上括号后,- addr: "[2620:fe::fe]",服务器地址识别正常,其它的IPv6地址不加 [] 均能正常识别
使用的配置文件
mosdns 的 log 记录
The text was updated successfully, but these errors were encountered: