From daa09fc0bfa41a469384d85e60d6befebad235e4 Mon Sep 17 00:00:00 2001 From: DHR60 Date: Sun, 1 Mar 2026 20:10:51 +0800 Subject: [PATCH] Add sing-box ech query server name --- .../Services/CoreConfig/Singbox/SingboxOutboundService.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxOutboundService.cs b/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxOutboundService.cs index b30c9c48..baf34230 100644 --- a/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxOutboundService.cs +++ b/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxOutboundService.cs @@ -727,13 +727,12 @@ public partial class CoreConfigSingboxService }, null); } 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; return (new Ech4Sbox() { enabled = true, - query_server_name = null, + query_server_name = queryServerName, }, ParseDnsAddress(echDnsServer)); } }