Browse Source

Improve

pull/4878/head
2dust 8 months ago
parent
commit
f814cc443d
  1. 7
      v2rayN/v2rayN/Handler/CoreConfigSingbox.cs

7
v2rayN/v2rayN/Handler/CoreConfigSingbox.cs

@ -972,6 +972,13 @@ namespace v2rayN.Handler
singboxConfig.route.rules.Add(rule); singboxConfig.route.rules.Add(rule);
} }
GenDns(new(), singboxConfig);
var dnsServer = singboxConfig.dns?.servers.FirstOrDefault();
if (dnsServer != null)
{
dnsServer.detour = singboxConfig.route.rules.LastOrDefault()?.outbound;
}
//msg = string.Format(ResUI.SuccessfulConfiguration"), node.getSummary()); //msg = string.Format(ResUI.SuccessfulConfiguration"), node.getSummary());
return 0; return 0;
} }

Loading…
Cancel
Save