mirror of
https://github.com/2dust/v2rayN.git
synced 2025-05-02 13:18:50 +00:00
Bug fix
This commit is contained in:
parent
e0cea929ea
commit
870955fee1
1 changed files with 6 additions and 0 deletions
|
@ -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…
Reference in a new issue