cty123 / TrojanRust

Trojan-rust is a rust implementation for Trojan protocol that is targeted to circumvent GFW. This implementation focus on performance and stability above everything else.
MIT License
112 stars 24 forks source link

Other protocols config.json templates #6

Open essoojay opened 2 years ago

essoojay commented 2 years ago

Thanks for this, i was able to run client using Sagernet (Trojan) But would appreciate if you can expand more on grpc and websocket config.json templates.

thanks

cty123 commented 2 years ago

Does SagerNet support Trojan + GRPC? I don't see such an option. I know it supports Vless + GRPC, but I don't have plans to implement Vless, even though they are pretty much the same thing.

essoojay commented 2 years ago

Thank you for the reply, am not saying Sagernet supports Trojan-gRPC, what am saying is I was able to run Trojan Rust very well on Sagernet. And am asking if you can provide better or comprehensive config.json for TrojanRust supported gRPC, websocket etc rather than just the Trojan which you gave it’s template. Provide templates for gRPC, websocket etc too.

thank you

cty123 commented 2 years ago

GRPC for TrojanRust at this moment is still experimental as I have discovered a few issues with it. Plus the existing GRPC implementation is only compatible with TrojanRust itself which makes it pretty useless for mobile devices. I am currently working on supporting GRPC feature for Xray client, since plenty of existing proxy software on Android integrates Xray core(V2rayNG, for example), and so far I am able to make it work for TCP traffic. Once I have fully completed the integration and tested the functionality on my VPS, I will update the templates and instructions to set things up. But for now, GRPC is not very usable.

For Websocket, I have no intention of implementing it, because the only reason anyone would still consider adding this extra layer is to enable CF proxy, and nowadays there are better alternatives like GRPC and QUIC, which are both on the roadmap of this project. So I don't find it necessary to have Websocket.