pufferffish / wireproxy

Wireguard client that exposes itself as a socks5 proxy
ISC License
4.38k stars 252 forks source link

Not working properly with torrenting #37

Open mintro32 opened 2 years ago

mintro32 commented 2 years ago

I have tried qBittorrent and Deluge so far. Neither of them can connect to DHT nodes qBittorrent can connect to PeX peers, but upload and download tend to be slower and less stable than when using my usual v2ray SOCKS5 proxy, probably due to limited connectivity with peers. I have not seen Deluge work at all with wireproxy.

Not sure if this matters, but wireproxy output is filled with such errors when torrenting:

2022/06/06 18:44:51 [ERR] socks: Failed to handle request: Failed to send reply: write tcp 127.0.0.1:10807->127.0.0.1:59140: write: broken pipe
2022/06/06 18:44:52 [ERR] socks: Failed to handle request: readfrom tcp 127.0.0.1:10807->127.0.0.1:38796: read tcp 10.14.198.2:64038: connection reset by peer
2022/06/06 18:44:54 [ERR] socks: Failed to handle request: Connect to 172.98.71.208:9317 failed: connect tcp 172.98.71.208:9317: connection was refused

24

If it's not too much work, could you please try to see if changing the SOCKS5 library can solve the issue? https://github.com/wzshiming/socks5 I'll be happy to help with testing

JJRcop commented 1 year ago

I am also facing this problem in the same way as @hintro32. It works but it's slow, because many peers are not able to connect.

Properly fixing #15 may help a lot