mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-05 12:04:59 +03:00
URL test apply fragment (#9157)
This commit is contained in:
@@ -55,6 +55,11 @@ public partial class CoreConfigV2rayService(CoreConfigContext context)
|
|||||||
GenDns();
|
GenDns();
|
||||||
|
|
||||||
GenStatistic();
|
GenStatistic();
|
||||||
|
|
||||||
|
if (_config.CoreBasicItem.EnableFragment)
|
||||||
|
{
|
||||||
|
ApplyOutboundFragment();
|
||||||
|
}
|
||||||
ApplyOutboundSendThrough();
|
ApplyOutboundSendThrough();
|
||||||
|
|
||||||
var finalRule = BuildFinalRule();
|
var finalRule = BuildFinalRule();
|
||||||
@@ -189,6 +194,10 @@ public partial class CoreConfigV2rayService(CoreConfigContext context)
|
|||||||
_coreConfig.routing.rules.Add(rule);
|
_coreConfig.routing.rules.Add(rule);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_config.CoreBasicItem.EnableFragment)
|
||||||
|
{
|
||||||
|
ApplyOutboundFragment();
|
||||||
|
}
|
||||||
ApplyOutboundSendThrough();
|
ApplyOutboundSendThrough();
|
||||||
//ret.Msg =string.Format(ResUI.SuccessfulConfiguration"), node.getSummary());
|
//ret.Msg =string.Format(ResUI.SuccessfulConfiguration"), node.getSummary());
|
||||||
ret.Success = true;
|
ret.Success = true;
|
||||||
@@ -250,6 +259,11 @@ public partial class CoreConfigV2rayService(CoreConfigContext context)
|
|||||||
});
|
});
|
||||||
|
|
||||||
_coreConfig.routing.rules.Add(BuildFinalRule());
|
_coreConfig.routing.rules.Add(BuildFinalRule());
|
||||||
|
|
||||||
|
if (_config.CoreBasicItem.EnableFragment)
|
||||||
|
{
|
||||||
|
ApplyOutboundFragment();
|
||||||
|
}
|
||||||
ApplyOutboundSendThrough();
|
ApplyOutboundSendThrough();
|
||||||
|
|
||||||
ret.Msg = string.Format(ResUI.SuccessfulConfiguration, "");
|
ret.Msg = string.Format(ResUI.SuccessfulConfiguration, "");
|
||||||
|
|||||||
@@ -12,10 +12,6 @@ public partial class CoreConfigV2rayService
|
|||||||
GenObservatory(multipleLoad);
|
GenObservatory(multipleLoad);
|
||||||
GenBalancer(multipleLoad);
|
GenBalancer(multipleLoad);
|
||||||
}
|
}
|
||||||
if (_config.CoreBasicItem.EnableFragment)
|
|
||||||
{
|
|
||||||
ApplyOutboundFragment();
|
|
||||||
}
|
|
||||||
if (context.IsTunEnabled)
|
if (context.IsTunEnabled)
|
||||||
{
|
{
|
||||||
_coreConfig.outbounds.Add(BuildDnsOutbound());
|
_coreConfig.outbounds.Add(BuildDnsOutbound());
|
||||||
|
|||||||
Reference in New Issue
Block a user