Add classic UDP DNS support for ECH Config

This commit is contained in:
风扇滑翔翼 2025-03-09 09:43:40 +00:00 committed by GitHub
parent 0923f53b21
commit 6d5be86947
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 91 additions and 57 deletions

View file

@ -444,7 +444,7 @@ func (c *Config) GetTLSConfig(opts ...Option) *tls.Config {
config.KeyLogWriter = writer
}
}
if len(c.EchConfig) > 0 || len(c.Ech_DOHserver) > 0 || len(c.EchKeySets) > 0 {
if len(c.EchConfig) > 0 || len(c.Ech_DNSserver) > 0 || len(c.EchKeySets) > 0 {
err := ApplyECH(c, config)
if err != nil {
errors.LogError(context.Background(), err)