diff --git a/app/Protocols/SingBox.php b/app/Protocols/SingBox.php index 3c79a01..1db6d8c 100644 --- a/app/Protocols/SingBox.php +++ b/app/Protocols/SingBox.php @@ -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';