Skip to content

Commit 5a0fdd9

Browse files
committed
Bug fix
#7211
1 parent 514dce9 commit 5a0fdd9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

v2rayN/ServiceLib/Services/CoreConfig/CoreConfigSingboxService.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -989,12 +989,12 @@ private async Task<int> GenRouting(SingboxConfig singboxConfig)
989989
});
990990
}
991991

992-
singboxConfig.route.rules.Insert(0, new()
992+
singboxConfig.route.rules.Add(new()
993993
{
994994
outbound = Global.DirectTag,
995995
clash_mode = ERuleMode.Direct.ToString()
996996
});
997-
singboxConfig.route.rules.Insert(0, new()
997+
singboxConfig.route.rules.Add(new()
998998
{
999999
outbound = Global.ProxyTag,
10001000
clash_mode = ERuleMode.Global.ToString()
@@ -1278,12 +1278,12 @@ private async Task<int> GenDnsDomains(ProfileItem? node, SingboxConfig singboxCo
12781278
detour = Global.DirectTag,
12791279
strategy = string.IsNullOrEmpty(dNSItem?.DomainStrategy4Freedom) ? null : dNSItem?.DomainStrategy4Freedom,
12801280
});
1281-
dns4Sbox.rules.Insert(0, new()
1281+
dns4Sbox.rules.Add(new()
12821282
{
12831283
server = tag,
12841284
clash_mode = ERuleMode.Direct.ToString()
12851285
});
1286-
dns4Sbox.rules.Insert(0, new()
1286+
dns4Sbox.rules.Add(new()
12871287
{
12881288
server = dns4Sbox.servers.Where(t => t.detour == Global.ProxyTag).Select(t => t.tag).FirstOrDefault() ?? "remote",
12891289
clash_mode = ERuleMode.Global.ToString()

0 commit comments

Comments
 (0)