mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-06-12 05:14:14 +08: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…
x
Reference in New Issue
Block a user