mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-10 02:53:12 +00:00
Remove TLS requirement on gRPC server
This commit is contained in:
parent
2e14cd6d66
commit
350729cde8
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue