Add custom tls client support for std grpc

This commit is contained in:
世界 committed 2022-11-09 11:46:29 +08:00
1 parent 972491c19d
commit eb2e8a0b40
27 files changed
+551 -183

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ type Server struct {
earlyDataHeaderName string
}
func NewServer(ctx context.Context, options option.V2RayWebsocketOptions, tlsConfig tls.Config, handler N.TCPConnectionHandler, errorHandler E.Handler) (*Server, error) {
func NewServer(ctx context.Context, options option.V2RayWebsocketOptions, tlsConfig tls.ServerConfig, handler N.TCPConnectionHandler, errorHandler E.Handler) (*Server, error) {
server := &Server{
ctx: ctx,
handler: handler,