Fix Freedom Resolver

This commit is contained in:
DHR60 2025-10-10 12:37:01 +08:00
parent f2ed8c1d6b
commit 0716fbf433

View file

@ -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);
}
catch (Exception ex)