Skip to content
New issue

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

在Socks5代理上有bug #102

Open
lovelife100 opened this issue Jan 3, 2024 · 0 comments
Open

在Socks5代理上有bug #102

lovelife100 opened this issue Jan 3, 2024 · 0 comments

Comments

@lovelife100
Copy link

socks5Proxy 是通过 url.Parse(StringValue(runtime.Socks5Proxy)) 所得,Socks5Proxy 如果传的是 socks5://user:password@host:port的格式,那么 socks5Proxy.String() 返回是同样的内容,但是proxy.SOCKS5 方法的第二个参数需要的地址,就是 host:port .
所以这里应该用的是 socks5Proxy.Host

tea/tea/tea.go

Lines 467 to 472 in 2b0e131

dialer, err := proxy.SOCKS5(strings.ToLower(StringValue(runtime.Socks5NetWork)), socks5Proxy.String(), auth,
&net.Dialer{
Timeout: time.Duration(IntValue(runtime.ConnectTimeout)) * time.Millisecond,
DualStack: true,
LocalAddr: getLocalAddr(StringValue(runtime.LocalAddr)),
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant