mirror of
https://github.com/2dust/v2rayN.git
synced 2026-05-30 01:34:08 +00:00
Fix
This commit is contained in:
parent
6c38a08f12
commit
0cd57d3fe3
2 changed files with 2 additions and 2 deletions
|
|
@ -227,7 +227,7 @@ public partial class CoreConfigSingboxService
|
||||||
: _config.HysteriaItem.UpMbps;
|
: _config.HysteriaItem.UpMbps;
|
||||||
int? downMbps = protocolExtra?.DownMbps is { } sd and >= 0
|
int? downMbps = protocolExtra?.DownMbps is { } sd and >= 0
|
||||||
? sd
|
? sd
|
||||||
: _config.HysteriaItem.UpMbps;
|
: _config.HysteriaItem.DownMbps;
|
||||||
outbound.up_mbps = upMbps > 0 ? upMbps : null;
|
outbound.up_mbps = upMbps > 0 ? upMbps : null;
|
||||||
outbound.down_mbps = downMbps > 0 ? downMbps : null;
|
outbound.down_mbps = downMbps > 0 ? downMbps : null;
|
||||||
var ports = protocolExtra?.Ports?.IsNullOrEmpty() == false ? protocolExtra.Ports : null;
|
var ports = protocolExtra?.Ports?.IsNullOrEmpty() == false ? protocolExtra.Ports : null;
|
||||||
|
|
|
||||||
|
|
@ -576,7 +576,7 @@ public partial class CoreConfigV2rayService
|
||||||
: _config.HysteriaItem.UpMbps;
|
: _config.HysteriaItem.UpMbps;
|
||||||
int? downMbps = protocolExtra?.DownMbps is { } sd and >= 0
|
int? downMbps = protocolExtra?.DownMbps is { } sd and >= 0
|
||||||
? sd
|
? sd
|
||||||
: _config.HysteriaItem.UpMbps;
|
: _config.HysteriaItem.DownMbps;
|
||||||
var hopInterval = !protocolExtra.HopInterval.IsNullOrEmpty()
|
var hopInterval = !protocolExtra.HopInterval.IsNullOrEmpty()
|
||||||
? protocolExtra.HopInterval
|
? protocolExtra.HopInterval
|
||||||
: (_config.HysteriaItem.HopInterval >= 5
|
: (_config.HysteriaItem.HopInterval >= 5
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue