Add Hy2 Port hopping for sing-box 1.11+

https://github.com/2dust/v2rayN/issues/6772
This commit is contained in:
2dust
2025-03-01 21:13:37 +08:00
parent 2dd10cf5a1
commit e70658f311
16 changed files with 126 additions and 16 deletions
@@ -730,6 +730,13 @@ namespace ServiceLib.Services.CoreConfig
outbound.up_mbps = _config.HysteriaItem.UpMbps > 0 ? _config.HysteriaItem.UpMbps : null;
outbound.down_mbps = _config.HysteriaItem.DownMbps > 0 ? _config.HysteriaItem.DownMbps : null;
if (node.Ports.IsNotEmpty())
{
outbound.server_port = null;
outbound.server_ports = node.Ports.Split(",").ToList();
outbound.hop_interval = _config.HysteriaItem.HopInterval > 0 ? $"{_config.HysteriaItem.HopInterval}s" : null;
}
break;
}
case EConfigType.TUIC: