mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-05-06 20:28:40 +00:00
Add classic UDP DNS support for ECH Config
This commit is contained in:
parent
8e5be20307
commit
22463f3256
5 changed files with 91 additions and 57 deletions
|
@ -413,7 +413,7 @@ type TLSConfig struct {
|
|||
ServerNameToVerify string `json:"serverNameToVerify"`
|
||||
VerifyPeerCertInNames []string `json:"verifyPeerCertInNames"`
|
||||
ECHConfig string `json:"echConfig"`
|
||||
ECHDOHServer string `json:"echDohServer"`
|
||||
ECHDNSServer string `json:"echDnsServer"`
|
||||
EchKeySets string `json:"echKeySets"`
|
||||
}
|
||||
|
||||
|
@ -500,7 +500,7 @@ func (c *TLSConfig) Build() (proto.Message, error) {
|
|||
}
|
||||
config.EchKeySets = EchPrivateKey
|
||||
}
|
||||
config.Ech_DOHserver = c.ECHDOHServer
|
||||
config.Ech_DNSserver = c.ECHDNSServer
|
||||
|
||||
return config, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue