mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-31 09:35:00 +03:00
Add sing-box ech query server name (#8869)
This commit is contained in:
@@ -744,13 +744,12 @@ public partial class CoreConfigSingboxService
|
|||||||
}, null);
|
}, null);
|
||||||
}
|
}
|
||||||
var idx = echConfig.IndexOf('+');
|
var idx = echConfig.IndexOf('+');
|
||||||
// NOTE: query_server_name, since sing-box 1.13.0
|
var queryServerName = idx > 0 ? echConfig[..idx] : null;
|
||||||
//var queryServerName = idx > 0 ? echConfig[..idx] : null;
|
|
||||||
var echDnsServer = idx > 0 ? echConfig[(idx + 1)..] : echConfig;
|
var echDnsServer = idx > 0 ? echConfig[(idx + 1)..] : echConfig;
|
||||||
return (new Ech4Sbox()
|
return (new Ech4Sbox()
|
||||||
{
|
{
|
||||||
enabled = true,
|
enabled = true,
|
||||||
query_server_name = null,
|
query_server_name = queryServerName,
|
||||||
}, ParseDnsAddress(echDnsServer));
|
}, ParseDnsAddress(echDnsServer));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user