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

AddrTypeNotSupported #31

Open
gema-arta opened this issue Dec 8, 2022 · 3 comments
Open

AddrTypeNotSupported #31

gema-arta opened this issue Dec 8, 2022 · 3 comments

Comments

@gema-arta
Copy link

Address detection error? For 35.185.44.232

curl -4vv 35.185.44.232 -qqss  --socks5 "socks5://192.168.12.122:18818"
*   Trying 192.168.12.122:18818...
* SOCKS5 connect to IPv4 35.185.44.232:80 (locally resolved)
* Can't complete SOCKS5 connection to 35.185.44.232. (8)
* Closing connection 0

curl -4vv 35.185.44.232 -qqss  --socks5 "socks5h://192.168.12.122:18818"
*   Trying 192.168.12.122:18818...
* Can't complete SOCKS5 connection to 35.185.44.232. (8)
* Closing connection 0

server log

 2022-12-08T18:37:17.824Z DEBUG merino > New connection
 2022-12-08T18:37:17.824Z TRACE merino > Version: 5 Auth nmethods: 2
 2022-12-08T18:37:17.824Z DEBUG merino > Authenticating
 2022-12-08T18:37:17.824Z TRACE merino > methods: [0]
 2022-12-08T18:37:17.824Z DEBUG merino > Sending NOAUTH packet
 2022-12-08T18:37:17.824Z DEBUG merino > NOAUTH sent
 2022-12-08T18:37:17.824Z DEBUG merino > Starting to relay data
 2022-12-08T18:37:17.824Z TRACE merino > Server waiting for connect
 2022-12-08T18:37:17.824Z TRACE merino > Server received [5, 1, 0, 1]
 2022-12-08T18:37:17.824Z TRACE merino > Getting Addr
 2022-12-08T18:37:17.824Z INFO  merino > New Request: Command: Connect Addr: 35.185.44.232, Port: 80
 2022-12-08T18:37:17.824Z DEBUG merino > Handling CONNECT Command
 2022-12-08T18:37:17.824Z TRACE merino > Connecting to: [35.185.44.232:80]
 2022-12-08T18:37:17.876Z ERROR merino > Error! Socks(AddrTypeNotSupported), client: 192.168.12.122:40986
@Pavinberg
Copy link

Pavinberg commented Apr 30, 2023

I met the same error because the network is slow. The default timeout for TCP connection is 50 ms defined here. You can customize the timeout value by changing the last parameter of Merino::new() in main.rs, e.g., from None to Duration::from_secs(2).

Hope it helps.

@ghost
Copy link

ghost commented Oct 19, 2023

@gema-arta now can you try again, is it fix your problem?

@ghost
Copy link

ghost commented Oct 19, 2023

I have test ,it works

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

2 participants