the8472 / mldht

Bittorrent Mainline DHT implementation in java
Mozilla Public License 2.0
148 stars 45 forks source link

it doesn't work with proxy socks v5 #27

Open masafaga opened 4 years ago

masafaga commented 4 years ago

Hello! Can someone implement an option to push mainline dht plugin (49001 UDP) to proxy socks v5(127.0.0.1), it's doesn't work by default. I'm using google translate. Regards,

the8472 commented 4 years ago

If you're looking for biglybt plugin help, check their issue tracker. This project is just the underlying library.

Personally I have never used socks and from what I have read Socks5 UDP support is not widespread, for example you can't use it over SSH. So I don't intend to implement this myself. But I would accept and mentor pull requests that add an optional configuration to customize UDP socket construction and replace the default ones with socks-proxied UDP sockets.

As an alternative you could try simply tunneling everything over a tunnel device via tun2socks: https://github.com/ambrop72/badvpn/wiki/Tun2socks#udp-forwarding That wouldn't require any changes to the application.