mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-03-06 09:06:17 +03:00
bugfix
This commit is contained in:
parent
8554549f2c
commit
0923f53b21
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user