Improve ECH support

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

View File

@@ -60,7 +60,7 @@ func NewNaive(ctx context.Context, router adapter.Router, logger log.ContextLogg
return nil, E.New("missing users")
}
if options.TLS != nil {
tlsConfig, err := tls.NewServer(ctx, router, logger, common.PtrValueOrDefault(options.TLS))
tlsConfig, err := tls.NewServer(ctx, logger, common.PtrValueOrDefault(options.TLS))
if err != nil {
return nil, err
}