mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 10:38:14 -05:00
fix: 修复SingBox下发带混淆的hysteria失败的问题
This commit is contained in:
parent
2a768b6fc8
commit
8d4846329e
@ -293,8 +293,8 @@ class SingBox
|
||||
$array['type'] = 'hysteria';
|
||||
$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 (isset($server['obfs']) && isset($server['obfs_password'])) {
|
||||
$array['obfs'] = $server['obfs_password'];
|
||||
if ($server['is_obfs']) {
|
||||
$array['obfs'] = $server['server_key'];
|
||||
}
|
||||
|
||||
$array['disable_mtu_discovery'] = true;
|
||||
@ -305,9 +305,9 @@ class SingBox
|
||||
$array['type'] = 'hysteria2';
|
||||
$array['password'] = $password;
|
||||
|
||||
if (isset($server['obfs'])) {
|
||||
$array['obfs']['type'] = $server['obfs'];
|
||||
$array['obfs']['password'] = $server['obfs_password'];
|
||||
if ($server['is_obfs']) {
|
||||
$array['obfs']['type'] = 'salamander';
|
||||
$array['obfs']['password'] = $server['server_key'];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user