mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 10:38:14 -05:00
fix: resolve hy2 speed limit dispatch issue in Singbox client
This commit is contained in:
parent
f86ccae28c
commit
de18cfe596
@ -310,6 +310,8 @@ class SingBox
|
|||||||
$array['tag'] = $server['name'];
|
$array['tag'] = $server['name'];
|
||||||
$array['type'] = 'hysteria2';
|
$array['type'] = 'hysteria2';
|
||||||
$array['password'] = $password;
|
$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']) {
|
if ($server['is_obfs']) {
|
||||||
$array['obfs']['type'] = 'salamander';
|
$array['obfs']['type'] = 'salamander';
|
||||||
|
Loading…
Reference in New Issue
Block a user