This commit is contained in:
DHR60 2026-05-02 16:46:45 +08:00
parent 6c38a08f12
commit 0cd57d3fe3
2 changed files with 2 additions and 2 deletions

View file

@ -227,7 +227,7 @@ public partial class CoreConfigSingboxService
: _config.HysteriaItem.UpMbps;
int? downMbps = protocolExtra?.DownMbps is { } sd and >= 0
? sd
: _config.HysteriaItem.UpMbps;
: _config.HysteriaItem.DownMbps;
outbound.up_mbps = upMbps > 0 ? upMbps : null;
outbound.down_mbps = downMbps > 0 ? downMbps : null;
var ports = protocolExtra?.Ports?.IsNullOrEmpty() == false ? protocolExtra.Ports : null;

View file

@ -576,7 +576,7 @@ public partial class CoreConfigV2rayService
: _config.HysteriaItem.UpMbps;
int? downMbps = protocolExtra?.DownMbps is { } sd and >= 0
? sd
: _config.HysteriaItem.UpMbps;
: _config.HysteriaItem.DownMbps;
var hopInterval = !protocolExtra.HopInterval.IsNullOrEmpty()
? protocolExtra.HopInterval
: (_config.HysteriaItem.HopInterval >= 5