merino icon indicating copy to clipboard operation
merino copied to clipboard

AddrTypeNotSupported

Open gema-arta opened this issue 3 years ago • 3 comments

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

gema-arta avatar Dec 08 '22 18:12 gema-arta

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.

Pavinberg avatar Apr 30 '23 08:04 Pavinberg

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

ghost avatar Oct 19 '23 02:10 ghost

I have test ,it works

ghost avatar Oct 19 '23 03:10 ghost