python-proxy
python-proxy copied to clipboard
Unknown remote protocol for connection to socks5 with username and password.
pproxy -r socks5://my host:port#username:password --test http://google.com When I run this command above to test my connection, the following exception raised.
============ my host:port ============ Traceback (most recent call last): File "/home/work/.local/lib/python3.6/site-packages/pproxy/server.py", line 860, in test_url reader, writer = await roption.prepare_connection(reader, writer, host_name, port) File "/home/work/.local/lib/python3.6/site-packages/pproxy/server.py", line 297, in prepare_connection await self.rproto.connect(reader_remote=reader_remote, writer_remote=writer_remote, rauth=self.auth, host_name=whost, port=wport, writer_cipher_r=writer_cipher_r, myhost=self.host_name, sock=writer_remote.get_extra_info('socket')) File "/home/work/.local/lib/python3.6/site-packages/pproxy/proto.py", line 259, in connect assert await reader_remote.read_n(2) == b'\x05\x02' AssertionError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/work/.local/bin/pproxy", line 8, in
Also, I have checked this proxy and I am sure it works well.