clash-rs icon indicating copy to clipboard operation
clash-rs copied to clipboard

vless

Open greenhat616 opened this issue 1 year ago • 9 comments

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

greenhat616 avatar Dec 01 '23 10:12 greenhat616

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 avatar Dec 02 '23 02:12 ibigbug

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

ibigbug avatar Dec 02 '23 03:12 ibigbug

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 avatar Dec 02 '23 05:12 ibigbug

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

ibigbug avatar Dec 04 '23 13:12 ibigbug

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

greenhat616 avatar Dec 04 '23 16:12 greenhat616

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

ibigbug avatar Dec 27 '23 16:12 ibigbug

usually vless is much batter than vmess

captainnx avatar Dec 28 '23 04:12 captainnx

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.

greenhat616 avatar Jan 02 '24 10:01 greenhat616

vless first!

yokiyokiyoki avatar Feb 02 '24 05:02 yokiyokiyoki