Skip to content

Commit

Permalink
Add support for gRPC protocol
Browse files Browse the repository at this point in the history
v2ray-core default gRPC protocolName is "gun"

Signed-off-by: Teddysun <[email protected]>
  • Loading branch information
teddysun committed May 26, 2021
1 parent 2ada385 commit 017759b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ func generateConfig() (*core.Config, error) {
return nil, newError("unsupported mode:", *mode)
}

// hack v2ray-core grpc protocolName
if *mode == "grpc" {
*mode = "gun"
}

streamConfig := internet.StreamConfig{
ProtocolName: *mode,
TransportSettings: []*internet.TransportConfig{{
Expand Down

0 comments on commit 017759b

Please sign in to comment.