Remove TLS requirement on gRPC server

This commit is contained in:
世界 2022-08-25 10:52:16 +08:00
parent 2e14cd6d66
commit 350729cde8
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -29,9 +29,6 @@ func NewServerTransport(ctx context.Context, options option.V2RayTransportOption
}
return NewQUICServer(ctx, options.QUICOptions, tlsConfig, handler, errorHandler)
case C.V2RayTransportTypeGRPC:
if tlsConfig == nil {
return nil, C.ErrTLSRequired
}
return NewGRPCServer(ctx, options.GRPCOptions, tlsConfig, handler)
default:
return nil, E.New("unknown transport type: " + options.Type)