0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-18 14:19:48 +03:00

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 03f5c08144
commit 6d416d619f
5 changed files with 91 additions and 57 deletions

View File

@ -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
}