fix: allow dns outbound have mark too

This commit is contained in:
fancy 2020-04-24 11:30:20 +08:00
parent 1d2fe72e19
commit f924a444a6

View File

@ -510,15 +510,19 @@ namespace Qv2ray::core::connection
outbounds.append(GenerateOutboundEntry("blackhole", GenerateBlackHoleOUT(false), {}, {}, "0.0.0.0", OUTBOUND_TAG_BLACKHOLE));
//
root["outbounds"] = outbounds;
// intercepet dns if necessary
if (GlobalConfig.inboundConfig.useTPROXY && GlobalConfig.inboundConfig.dnsIntercept)
{
DNSInterceptFilter(root);
}
// mark outbound if necessary
if (GlobalConfig.inboundConfig.useTPROXY && GlobalConfig.outboundConfig.mark > 0)
{
OutboundMarkSettingFilter(GlobalConfig.outboundConfig.mark, root);
}
if (GlobalConfig.inboundConfig.useTPROXY && GlobalConfig.inboundConfig.dnsIntercept)
{
DNSInterceptFilter(root);
}
}
// Let's process some api features.