Watfaq / clash-rs

custom protocol network proxy
https://watfaq.gitbook.io/clashrs-user-manual/
Apache License 2.0
810 stars 64 forks source link

shadow-tls implementation #321

Closed VendettaReborn closed 7 months ago

VendettaReborn commented 8 months ago

Motivation

The shadow-tls protocol may be one of safest protocol now? (I've used the shadow-tls-v3 for a long time, it's pretty stable)

Current implementation in other repos

Status quo:

what we need to do

  1. fork a rustls & tokio-rustls, do some changes similar to shadow-tls-tokio-client
  2. patch the Cargo.toml
  3. add shadowtls's option in the shadowsocks's plugin
  4. reuse the code of shadow-tls-tokio-client

I had fully implement this protocol in my local environment and had it fully tested, however, i don't know what's the best way to handle the dependency of the hacked rustls & tokio-rustls: should i maintain the code by myself, or should we create a organization, and move the forked repos(rust-tun, netstack-lwip .etc ) to it?

ibigbug commented 8 months ago

interesting. there's also discussions about this topic here https://github.com/refraction-networking/utls/issues/103

ibigbug commented 8 months ago

handle the dependency of the hacked clash-rs is under an org account - https://github.com/Watfaq

if you don't mind, you can put the forked repo under this org.

VendettaReborn commented 8 months ago

handle the dependency of the hacked clash-rs is under an org account - https://github.com/Watfaq

if you don't mind, you can put the forked repo under this org.

Got it

VendettaReborn commented 8 months ago

interesting. there's also discussions about this topic here refraction-networking/utls#103

Yep, it's similar to the patch mentioned in this issue