mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-25 18:11:28 +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)
|
return NewQUICServer(ctx, options.QUICOptions, tlsConfig, handler, errorHandler)
|
||||||
case C.V2RayTransportTypeGRPC:
|
case C.V2RayTransportTypeGRPC:
|
||||||
if tlsConfig == nil {
|
|
||||||
return nil, C.ErrTLSRequired
|
|
||||||
}
|
|
||||||
return NewGRPCServer(ctx, options.GRPCOptions, tlsConfig, handler)
|
return NewGRPCServer(ctx, options.GRPCOptions, tlsConfig, handler)
|
||||||
default:
|
default:
|
||||||
return nil, E.New("unknown transport type: " + options.Type)
|
return nil, E.New("unknown transport type: " + options.Type)
|
||||||
|
|
Loading…
Reference in a new issue