0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-17 13:57:15 +03:00
This commit is contained in:
风扇滑翔翼
2025-03-02 13:30:58 +00:00
committed by GitHub
parent f4c5b19c30
commit 03f5c08144

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"