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 8e5be20307
commit 22463f3256
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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
}