Improve ECH support

This commit is contained in:
世界
2023-08-29 13:43:42 +08:00
parent b1f289bce5
commit ae98971f6b
38 changed files with 444 additions and 92 deletions

View File

@@ -69,7 +69,7 @@ func NewVMess(ctx context.Context, router adapter.Router, logger log.ContextLogg
return nil, err
}
if options.TLS != nil {
inbound.tlsConfig, err = tls.NewServer(ctx, router, logger, common.PtrValueOrDefault(options.TLS))
inbound.tlsConfig, err = tls.NewServer(ctx, logger, common.PtrValueOrDefault(options.TLS))
if err != nil {
return nil, err
}