Skip to content
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

grpc #69

Closed
Tracked by #59
ibigbug opened this issue Sep 14, 2023 · 2 comments
Closed
Tracked by #59

grpc #69

ibigbug opened this issue Sep 14, 2023 · 2 comments
Labels
core enhancement New feature or request help wanted Extra attention is needed

Comments

@ibigbug
Copy link
Member

ibigbug commented Sep 14, 2023

No description provided.

@greenhat616
Copy link
Collaborator

what'more. I tested it in h2c with v2ray. It also work. I can draft a simple pr to enable it tomorrow.

image
image

With these code attached in vmess/mod.rs:

Some(VmessTransport::Grpc(ref opt)) => {
                // let tls_opt = self.opts.tls.as_ref().expect("gRPC conn must have tls opt");
                stream = match self.opts.tls.as_ref() {
                    None => stream,
                    Some(tls_opt) => {
                        transport::tls::wrap_stream(stream, tls_opt.to_owned(), None).await?
                    }
                };
                ...
})

@ibigbug
Copy link
Member Author

ibigbug commented Dec 6, 2023

nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants