Migrate to stdlib ECH support

This commit is contained in:
世界
2025-03-24 20:40:22 +08:00
parent e5d12c9b72
commit 1c4bcefa8f
34 changed files with 667 additions and 897 deletions
+3
View File
@@ -127,5 +127,8 @@ func NewSTDClient(ctx context.Context, serverAddress string, options option.Outb
}
tlsConfig.RootCAs = certPool
}
if options.ECH != nil && options.ECH.Enabled {
return parseECHClientConfig(ctx, options, &tlsConfig)
}
return &STDClientConfig{&tlsConfig}, nil
}