mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-05-01 18:04:16 +00:00
ECH: client support TLS Encrypted Client Hello
This commit is contained in:
parent
16eee1b89c
commit
9bdf866471
5 changed files with 190 additions and 10 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue