Skip to content

Commit 870955f

Browse files
committed
Bug fix
1 parent e0cea92 commit 870955f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

v2rayN/v2rayN/Handler/CoreConfigSingbox.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,12 @@ public int GenerateClientSpeedtestConfig(List<ServerTestItem> selecteds, out Sin
10451045
{
10461046
dnsServer.detour = singboxConfig.route.rules.LastOrDefault()?.outbound;
10471047
}
1048+
var dnsRule = singboxConfig.dns?.rules.Where(t => t.outbound != null).FirstOrDefault();
1049+
if (dnsRule != null)
1050+
{
1051+
singboxConfig.dns.rules = [];
1052+
singboxConfig.dns.rules.Add(dnsRule);
1053+
}
10481054

10491055
//msg = string.Format(ResUI.SuccessfulConfiguration"), node.getSummary());
10501056
return 0;

0 commit comments

Comments
 (0)