This commit is contained in:
风扇滑翔翼 2025-03-02 13:30:58 +00:00 committed by GitHub
parent 8554549f2c
commit 0923f53b21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,7 @@ func ApplyECH(c *Config, config *tls.Config) error {
nameToQuery := c.ServerName
var DOHServer string
if len(c.EchConfig) != 0 {
if len(c.EchConfig) != 0 || len(c.Ech_DOHserver) != 0 {
parts := strings.Split(c.Ech_DOHserver, "+")
if len(parts) == 2 {
// parse ECH DOH server in format of "example.com+https://1.1.1.1/dns-query"