mirror of
https://github.com/2dust/v2rayN.git
synced 2025-10-13 11:59:13 +00:00
Fix Freedom Resolver
This commit is contained in:
parent
f2ed8c1d6b
commit
0716fbf433
1 changed files with 10 additions and 0 deletions
|
@ -43,6 +43,16 @@ public partial class CoreConfigSingboxService
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Outbound Freedom Resolver
|
||||||
|
var freedomOutbound = singboxConfig.outbounds?.FirstOrDefault(t => t is { type: "direct", tag: Global.DirectTag });
|
||||||
|
if (freedomOutbound != null)
|
||||||
|
{
|
||||||
|
freedomOutbound.domain_resolver = new()
|
||||||
|
{
|
||||||
|
server = Global.SingboxDirectDNSTag,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
await GenOutboundDnsRule(node, singboxConfig, Global.SingboxOutboundResolverTag);
|
await GenOutboundDnsRule(node, singboxConfig, Global.SingboxOutboundResolverTag);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|
Loading…
Reference in a new issue