Fix Freedom Resolver (#8100)

This commit is contained in:
DHR60 2025-10-10 16:58:18 +08:00 committed by GitHub
parent f2ed8c1d6b
commit 1f42d32e1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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); await GenOutboundDnsRule(node, singboxConfig, Global.SingboxOutboundResolverTag);
} }
catch (Exception ex) catch (Exception ex)