ECH: client support TLS Encrypted Client Hello

This commit is contained in:
风扇滑翔翼
2025-02-08 10:07:42 +00:00
committed by GitHub
parent caee152adf
commit caa1a5513b
5 changed files with 190 additions and 10 deletions

View File

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