[GH-ISSUE #544] 无法解析IPV6地址,访问异常 #439

Open
opened 2026-02-27 23:16:54 +03:00 by kerem · 2 comments
Owner

Originally created by @kimoziiiii on GitHub (Nov 1, 2023).
Original GitHub issue: https://github.com/snail007/goproxy/issues/544

Expected Behavior

这是个BUG!钉钉试用免费/商业版本代理访问异常

Current Behavior

image

Possible Solution

看日志,应该是无法识别DNS返回的IPv6地址

2023/11/01 07:17:44.678 WARN connect fail, target: www.dingtalk.com:80([[2401:b180:2000:50::b]:443]:80), parent: , err: dial tcp: address [[2401:b180:2000:50::b]:443]:80: too many colons in address

Steps to Reproduce

  1. proxy http -p :10808 --dns-address 10.0.20.194 --dns-ttl 600 --bind-ip 10.0.20.202:10808

image

Context (Environment)

  1. proxy version is : commercial_14.0
  2. full command is : proxy http -p :10808 --dns-address 10.0.20.194 --dns-ttl 600 --bind-ip 10.0.20.202:10808
  3. system is : Ubuntu22.04LTS
  4. full log is:

Detailed Description

Possible Implementation

Originally created by @kimoziiiii on GitHub (Nov 1, 2023). Original GitHub issue: https://github.com/snail007/goproxy/issues/544 ## Expected Behavior 这是个BUG!钉钉试用免费/商业版本代理访问异常 ## Current Behavior ![image](https://github.com/snail007/goproxy/assets/8429793/56fd7b51-bc75-4014-9679-a3b5792c873a) ## Possible Solution 看日志,应该是无法识别DNS返回的IPv6地址 ``` 2023/11/01 07:17:44.678 WARN connect fail, target: www.dingtalk.com:80([[2401:b180:2000:50::b]:443]:80), parent: , err: dial tcp: address [[2401:b180:2000:50::b]:443]:80: too many colons in address ``` ## Steps to Reproduce 1. proxy http -p :10808 --dns-address 10.0.20.194 --dns-ttl 600 --bind-ip 10.0.20.202:10808 2. ![image](https://github.com/snail007/goproxy/assets/8429793/eed89c46-fe91-4412-9670-7c56fa0db560) ## Context (Environment) <!--- How has this issue affected you? What are you trying to accomplish? --> <!--- Providing context helps us come up with a solution that is most useful in the real world --> 1. proxy version is : commercial_14.0 1. full command is : proxy http -p :10808 --dns-address 10.0.20.194 --dns-ttl 600 --bind-ip 10.0.20.202:10808 1. system is : Ubuntu22.04LTS 1. full log is: <!--- Provide a general summary of the issue in the Title above --> ## Detailed Description <!--- Provide a detailed description of the change or addition you are proposing --> ## Possible Implementation <!--- Not obligatory, but suggest an idea for implementing addition or change -->
Author
Owner

@snail007 commented on GitHub (Nov 1, 2023):

这你的dns问题,返回了的IP地址里面包含了端口号,这是错误的行为。

<!-- gh-comment-id:1788645271 --> @snail007 commented on GitHub (Nov 1, 2023): 这你的dns问题,返回了的IP地址里面包含了端口号,这是错误的行为。
Author
Owner

@kimoziiiii commented on GitHub (Nov 20, 2023):

DNS我用的是dnsmasq,只是用来做转发,上级DNS是直接递归到公网DNS了,DNS返回的结果里面不应该带端口啊,dnsmasq我没有做任何的自定义修改。

<!-- gh-comment-id:1818440547 --> @kimoziiiii commented on GitHub (Nov 20, 2023): DNS我用的是dnsmasq,只是用来做转发,上级DNS是直接递归到公网DNS了,DNS返回的结果里面不应该带端口啊,dnsmasq我没有做任何的自定义修改。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/goproxy#439
No description provided.