From be73ff9b40fd5d5cbf35cd583e83b5817c739fa2 Mon Sep 17 00:00:00 2001 From: DHR60 Date: Sun, 3 May 2026 15:13:58 +0800 Subject: [PATCH] Fix --- .../Services/CoreConfig/Singbox/SingboxDnsService.cs | 3 ++- v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayDnsService.cs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxDnsService.cs b/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxDnsService.cs index c7adb720..f5a7da4b 100644 --- a/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxDnsService.cs +++ b/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxDnsService.cs @@ -355,7 +355,8 @@ public partial class CoreConfigSingboxService if (expectedIPsRegions.Count > 0 && rule.geosite?.Count > 0 && !regionName.IsNullOrEmpty()) { var regionGeosite = rule.geosite.Where(g => g.EndsWith($"-{regionName}", StringComparison.OrdinalIgnoreCase) - || g.EndsWith($"@{regionName}", StringComparison.OrdinalIgnoreCase)).ToList(); + || g.EndsWith($"@{regionName}", StringComparison.OrdinalIgnoreCase) + || g == regionName).ToList(); if (regionGeosite.Count > 0) { rule.geosite.RemoveAll(regionGeosite.Contains); diff --git a/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayDnsService.cs b/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayDnsService.cs index ad395009..1777d16a 100644 --- a/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayDnsService.cs +++ b/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayDnsService.cs @@ -201,7 +201,8 @@ public partial class CoreConfigV2rayService { var isExpectedDomain = !regionName.IsNullOrEmpty() || normalizedDomain.EndsWith($"-{regionName}") - || normalizedDomain.EndsWith($"@{regionName}"); + || normalizedDomain.EndsWith($"@{regionName}") + || normalizedDomain == Global.GeoSitePrefix + regionName; var targetList = isExpectedDomain ? expectedDomainList : directGeositeList; targetList.Add(normalizedDomain); }