Migrate to stdlib ECH support

This commit is contained in:
世界
2025-05-01 12:30:45 +08:00
parent 07eacfc580
commit 16d7d16919
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
}