Add certificate store

This commit is contained in:
世界
2025-01-08 10:34:45 +08:00
parent 60497bb83b
commit a692abd46d
30 changed files with 4784 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 {