mirror of
https://github.com/2dust/v2rayN.git
synced 2025-04-20 06:02:23 +00:00
parent
4f8dae7fa0
commit
1b2dab1388
1 changed files with 7 additions and 3 deletions
|
@ -1038,9 +1038,13 @@ namespace ServiceLib.Services.CoreConfig
|
||||||
//Outbound Freedom domainStrategy
|
//Outbound Freedom domainStrategy
|
||||||
if (Utils.IsNotEmpty(domainStrategy4Freedom))
|
if (Utils.IsNotEmpty(domainStrategy4Freedom))
|
||||||
{
|
{
|
||||||
var outbound = v2rayConfig.outbounds[1];
|
var outbound = v2rayConfig.outbounds.FirstOrDefault(t => t is { protocol: "freedom", tag: Global.DirectTag });
|
||||||
outbound.settings.domainStrategy = domainStrategy4Freedom;
|
if (outbound != null)
|
||||||
outbound.settings.userLevel = 0;
|
{
|
||||||
|
outbound.settings = new();
|
||||||
|
outbound.settings.domainStrategy = domainStrategy4Freedom;
|
||||||
|
outbound.settings.userLevel = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var obj = JsonUtils.ParseJson(normalDNS);
|
var obj = JsonUtils.ParseJson(normalDNS);
|
||||||
|
|
Loading…
Reference in a new issue