Add certificate store

This commit is contained in:
世界
2025-01-08 10:34:45 +08:00
parent 36205a49a3
commit 1f7bce50bf
30 changed files with 4786 additions and 32 deletions

View File

@@ -100,6 +100,7 @@ func NewECHClient(ctx context.Context, serverAddress string, options option.Outb
var tlsConfig cftls.Config
tlsConfig.Time = ntp.TimeFuncFromContext(ctx)
tlsConfig.RootCAs = adapter.RootPoolFromContext(ctx)
if options.DisableSNI {
tlsConfig.ServerName = "127.0.0.1"
} else {