Python-Tls-Client icon indicating copy to clipboard operation
Python-Tls-Client copied to clipboard

Hi, socks5h requirement

Open michaelx1993 opened this issue 1 year ago • 2 comments
trafficstars

hi, it only supports socks5, but does not support socks5h protocol.

could we add the feature to support socks5h ? thanks.

michaelx1993 avatar Sep 19 '24 05:09 michaelx1993

yes me same need socks5h

kendbad avatar Oct 09 '24 05:10 kendbad

I've made socks5h work on my machine. Here's how.

Short answer:

This repo uses outdated *.DLL, *.SO, *.DYLIB libraries in FlorianREGAZ/Python-Tls-Client/tls_client/dependencies/, you need to update them with latest version.

Longer answer (more of beginner guide) :

All that needs to be done to make socks5h work:

  1. Download this whole REPO as zip and then unzip it.
  2. Update *.DLL, *.SO, *.DYLIB libraries in FlorianREGAZ/Python-Tls-Client/tls_client/dependencies/ folder. Latest versions of those libraries can be found at bogdanfinn/tls-client. This repo uses these libraries, but this repo currently uses outdated version v1.7.1. Only in version v1.7.4 they made support for socks5h you can the see issue here - last commit fixed the issue.
  3. After replacing old *.DLL, *.SO, *.DYLIB libraries with new ones, you can run pip setup.py install
  4. Now you have done everything necessary, feel free to run pip install .\Python-Tls-Client-master to install this REPO's updated library working with socks5h

I've tried to keep everything beginner friendly, in case some beginner stumps upon same issue. Hope that helps

user895v avatar Feb 14 '25 00:02 user895v