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

How do I set the “serviceName” of gRPC using XRAY as a proxy client? #13

Closed 5l2 closed 3 months ago

5l2 commented 1 year ago

Hello,

If I use this project as a proxy server and XRAY as a proxy client, how do I configure XRAY's serviceName to make it work?

grpcSettings
{
  "serviceName": "name",
  "multiMode": false,
  "idle_timeout": 60,
  "health_check_timeout": 20,
  "permit_without_stream": false,
  "initial_windows_size": 0
}

Thank you.

5l2 commented 1 year ago

I have solved this problem.

POST /trojan_rust.transport.grpc.GRPCService/Tun

Is it a good idea to add an option for this, if possible? Otherwise, the adversary may scan all IPv4 addresses to detect the servers.