File tree Expand file tree Collapse file tree
v2rayN/ServiceLib/Services/CoreConfig/V2ray Expand file tree Collapse file tree Original file line number Diff line number Diff 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 , "" ) ;
Original file line number Diff line number Diff 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 ( ) ) ;
You can’t perform that action at this time.
0 commit comments