Skip to content

Commit 24f8d76

Browse files
committed
Update routing version prefix to V4
1 parent 31a8dde commit 24f8d76

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

v2rayN/ServiceLib/Handler/ConfigHandler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2080,7 +2080,7 @@ public static async Task<int> InitExternalRouting(Config config, bool blImportAd
20802080
/// <returns>0 if successful</returns>
20812081
public static async Task<int> InitBuiltinRouting(Config config, bool blImportAdvancedRules = false)
20822082
{
2083-
var ver = "V3-";
2083+
var ver = "V4-";
20842084
var items = await AppManager.Instance.RoutingItems();
20852085

20862086
//TODO Temporary code to be removed later
@@ -2091,7 +2091,7 @@ public static async Task<int> InitBuiltinRouting(Config config, bool blImportAdv
20912091
items = await AppManager.Instance.RoutingItems();
20922092
}
20932093

2094-
if (!blImportAdvancedRules && items.Count > 0)
2094+
if (!blImportAdvancedRules && items.Count(u => u.Remarks.StartsWith(ver)) > 0)
20952095
{
20962096
//migrate
20972097
//TODO Temporary code to be removed later

0 commit comments

Comments
 (0)