mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-12 15:34:59 +03:00
@@ -12,6 +12,10 @@ public partial class CoreConfigV2rayService
|
||||
GenObservatory(multipleLoad);
|
||||
GenBalancer(multipleLoad);
|
||||
}
|
||||
if (context.IsTunEnabled)
|
||||
{
|
||||
_coreConfig.outbounds.Add(BuildDnsOutbound());
|
||||
}
|
||||
}
|
||||
|
||||
private List<Outbounds4Ray> BuildAllProxyOutbounds(string baseTagName = Global.ProxyTag)
|
||||
@@ -825,4 +829,10 @@ public partial class CoreConfigV2rayService
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static Outbounds4Ray BuildDnsOutbound()
|
||||
{
|
||||
var outbound = new Outbounds4Ray { tag = Global.DnsOutboundTag, protocol = "dns", };
|
||||
return outbound;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user