Browse Source

Bug fix

pull/5002/head
2dust 8 months ago
parent
commit
870955fee1
  1. 6
      v2rayN/v2rayN/Handler/CoreConfigSingbox.cs

6
v2rayN/v2rayN/Handler/CoreConfigSingbox.cs

@ -1045,6 +1045,12 @@ namespace v2rayN.Handler
{ {
dnsServer.detour = singboxConfig.route.rules.LastOrDefault()?.outbound; dnsServer.detour = singboxConfig.route.rules.LastOrDefault()?.outbound;
} }
var dnsRule = singboxConfig.dns?.rules.Where(t => t.outbound != null).FirstOrDefault();
if (dnsRule != null)
{
singboxConfig.dns.rules = [];
singboxConfig.dns.rules.Add(dnsRule);
}
//msg = string.Format(ResUI.SuccessfulConfiguration"), node.getSummary()); //msg = string.Format(ResUI.SuccessfulConfiguration"), node.getSummary());
return 0; return 0;

Loading…
Cancel
Save