python-proxy icon indicating copy to clipboard operation
python-proxy copied to clipboard

trojan not working

Open ahrzeroday opened this issue 4 years ago • 3 comments

Hi,

I tested your code and found problem on trojan protocol i use this code from your documentation:

server = ProxyServer.Server('socks5://0.0.0.0:1234') remote = ProxyServer.Connection('trojan://[email protected]:443') args = dict( rserver = [remote] )

but i give userinfo must be "cipher:key" Error

Cheers,

ahrzeroday avatar Mar 13 '21 17:03 ahrzeroday

Trojan URI in pproxy is not the format "trojan://password@ip:port". It should be "trojan://ip:port#password".

qwj avatar Mar 15 '21 05:03 qwj

You can read the Trojan example part of README.rst. Trojan protocol is used with ssl in most cases like "trojan+ssl://".

qwj avatar Mar 15 '21 06:03 qwj

in your example i can't see Trojan URI format but now it's okey thanks

ahrzeroday avatar Mar 15 '21 11:03 ahrzeroday