Browse Source

Fix httpupgrade crash

世界 7 months ago
parent
commit
96eb98c00a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      transport/v2rayhttpupgrade/server.go

+ 1 - 0
transport/v2rayhttpupgrade/server.go

@@ -38,6 +38,7 @@ type Server struct {
 func NewServer(ctx context.Context, logger logger.ContextLogger, options option.V2RayHTTPUpgradeOptions, tlsConfig tls.ServerConfig, handler adapter.V2RayServerTransportHandler) (*Server, error) {
 	server := &Server{
 		ctx:       ctx,
+		logger:    logger,
 		tlsConfig: tlsConfig,
 		handler:   handler,
 		host:      options.Host,