Compare commits

..

2 Commits

Author SHA1 Message Date
Cp0204
8595d7ff16
Merge 603b240733 into de18cfe596 2024-12-12 15:45:53 +08:00
Xboard
de18cfe596
fix: resolve hy2 speed limit dispatch issue in Singbox client 2024-12-09 18:45:12 +08:00

View File

@ -310,6 +310,8 @@ class SingBox
$array['tag'] = $server['name'];
$array['type'] = 'hysteria2';
$array['password'] = $password;
$array['up_mbps'] = $user->speed_limit ? min($server['down_mbps'], $user->speed_limit) : $server['down_mbps'];
$array['down_mbps'] = $user->speed_limit ? min($server['up_mbps'], $user->speed_limit) : $server['up_mbps'];
if ($server['is_obfs']) {
$array['obfs']['type'] = 'salamander';