Watfaq / clash-rs

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

vless #202

Open greenhat616 opened 10 months ago

greenhat616 commented 10 months ago

Might we should impl vless first?

vless basic stream is based on vmess, ref:https://github.com/MetaCubeX/mihomo/blob/Alpha/adapter/outbound/vless.go and grpc based on gun. I can draft a gun transport first

ibigbug commented 10 months ago

i think we already have some level of gRPC support https://github.com/Watfaq/clash-rs/blob/c84d26251b9bb2e648a97f9e15accce903884b6c/clash_lib/src/proxy/transport/grpc.rs#L49

i had a quick look at gun, which seems to be something similar(same) to the grpc transport?

ibigbug commented 10 months ago

I'm setting up a grpc proxy to test it out. I don't think that code has been tested ever.

ibigbug commented 10 months ago

it looks gun is grpc over h2.

i'm working on the PR #203 however there seems to be something wrong. i'll try to fix it later.

ibigbug commented 10 months ago

I'm kind of stuck - https://github.com/Watfaq/clash-rs/pull/203

if you are more familiar maybe you can take a look, or I'll get back when I have more time to dig in

greenhat616 commented 10 months ago

I'm kind of stuck - #203

if you are more familiar maybe you can take a look, or I'll get back when I have more time to dig in

Okay. I can have a try tomorrow

ibigbug commented 9 months ago

the gun/gRPC is done. maybe we should promote this - however is this in general more popular/better then vmess?

captainnx commented 9 months ago

usually vless is much batter than vmess

greenhat616 commented 9 months ago

the gun/gRPC is done. maybe we should promote this - however is this in general more popular/better then vmess?

It seems that Vmess, SS, vless, hysteria are widely used by Proxies Provider. So it highly recommended to implement it in advanced priority.

What's more, SS 2022 could be easy to introduced due to the SS library we are directly imported.

yokiyokiyoki commented 8 months ago

vless first!