mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-22 03:40:22 +08:00
fix: allow dns outbound have mark too
This commit is contained in:
parent
1d2fe72e19
commit
f924a444a6
@ -510,15 +510,19 @@ namespace Qv2ray::core::connection
|
|||||||
outbounds.append(GenerateOutboundEntry("blackhole", GenerateBlackHoleOUT(false), {}, {}, "0.0.0.0", OUTBOUND_TAG_BLACKHOLE));
|
outbounds.append(GenerateOutboundEntry("blackhole", GenerateBlackHoleOUT(false), {}, {}, "0.0.0.0", OUTBOUND_TAG_BLACKHOLE));
|
||||||
//
|
//
|
||||||
root["outbounds"] = outbounds;
|
root["outbounds"] = outbounds;
|
||||||
|
|
||||||
|
// intercepet dns if necessary
|
||||||
|
if (GlobalConfig.inboundConfig.useTPROXY && GlobalConfig.inboundConfig.dnsIntercept)
|
||||||
|
{
|
||||||
|
DNSInterceptFilter(root);
|
||||||
|
}
|
||||||
|
|
||||||
// mark outbound if necessary
|
// mark outbound if necessary
|
||||||
if (GlobalConfig.inboundConfig.useTPROXY && GlobalConfig.outboundConfig.mark > 0)
|
if (GlobalConfig.inboundConfig.useTPROXY && GlobalConfig.outboundConfig.mark > 0)
|
||||||
{
|
{
|
||||||
OutboundMarkSettingFilter(GlobalConfig.outboundConfig.mark, root);
|
OutboundMarkSettingFilter(GlobalConfig.outboundConfig.mark, root);
|
||||||
}
|
}
|
||||||
if (GlobalConfig.inboundConfig.useTPROXY && GlobalConfig.inboundConfig.dnsIntercept)
|
|
||||||
{
|
|
||||||
DNSInterceptFilter(root);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Let's process some api features.
|
// Let's process some api features.
|
||||||
|
Loading…
Reference in New Issue
Block a user