Skip to content

Commit c5db319

Browse files
authored
URL test apply fragment (2dust#9157)
1 parent 6a7b359 commit c5db319

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

v2rayN/ServiceLib/Services/CoreConfig/V2ray/CoreConfigV2rayService.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ public RetResult GenerateClientConfigContent()
5555
GenDns();
5656

5757
GenStatistic();
58+
59+
if (_config.CoreBasicItem.EnableFragment)
60+
{
61+
ApplyOutboundFragment();
62+
}
5863
ApplyOutboundSendThrough();
5964

6065
var finalRule = BuildFinalRule();
@@ -189,6 +194,10 @@ public RetResult GenerateClientSpeedtestConfig(List<ServerTestItem> selecteds)
189194
_coreConfig.routing.rules.Add(rule);
190195
}
191196

197+
if (_config.CoreBasicItem.EnableFragment)
198+
{
199+
ApplyOutboundFragment();
200+
}
192201
ApplyOutboundSendThrough();
193202
//ret.Msg =string.Format(ResUI.SuccessfulConfiguration"), node.getSummary());
194203
ret.Success = true;
@@ -250,6 +259,11 @@ public RetResult GenerateClientSpeedtestConfig(int port)
250259
});
251260

252261
_coreConfig.routing.rules.Add(BuildFinalRule());
262+
263+
if (_config.CoreBasicItem.EnableFragment)
264+
{
265+
ApplyOutboundFragment();
266+
}
253267
ApplyOutboundSendThrough();
254268

255269
ret.Msg = string.Format(ResUI.SuccessfulConfiguration, "");

v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayOutboundService.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ private void GenOutbounds()
1212
GenObservatory(multipleLoad);
1313
GenBalancer(multipleLoad);
1414
}
15-
if (_config.CoreBasicItem.EnableFragment)
16-
{
17-
ApplyOutboundFragment();
18-
}
1915
if (context.IsTunEnabled)
2016
{
2117
_coreConfig.outbounds.Add(BuildDnsOutbound());

0 commit comments

Comments
 (0)