Fix httpupgrade crash

This commit is contained in:
世界 2025-03-14 14:51:35 +08:00
parent 68ce9577c6
commit 96eb98c00a
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -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,