-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VMess protocol support #632
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG! Just a few comments, and VMessAddr
should be added here.
For the code in outbound.go
and server.go
that was copied over, is every function needed? Some aren't referenced anywhere else. Would it still work if we removed them?
return err | ||
} else { | ||
if onClose != nil { | ||
onClose(nil) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
@garmr-ulfr thanks for the review. all points addressed |
This PR adds VMess protocol support based on https://github.com/SagerNet/sing-vmess package.
It's fully compatible with v2ray, to test (replaces UUID1,UUID2 with some random uuids):
http-proxy-lantern -cfgsvrauthtoken blabla -vmess-addr 0.0.0.0:7474 -vmess-uuids UUID1,UUID2
v2ray run -c client.json
with the following configcurl -x socks5://127.0.0.1:11083 'https://ip.oxylabs.io/location'
P.S. I've also added a CLI option to disable panicwrap, which can be very useful when running under debugger