mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 10:38:14 -05:00
feat: Support Shadowsocks obfs config
This commit is contained in:
parent
c7b15e6b8b
commit
dd8267097e
@ -161,6 +161,11 @@ class ServerService
|
||||
$userKey = Helper::uuidToBase64($user['uuid'], $config['userKeySize']);
|
||||
$shadowsocks[$key]['password'] = "{$serverKey}:{$userKey}";
|
||||
}
|
||||
if ($v['obfs'] === 'http') {
|
||||
$shadowsocks[$key]['obfs'] = 'http';
|
||||
$shadowsocks[$key]['obfs-host'] = $v['obfs_settings']['host'];
|
||||
$shadowsocks[$key]['obfs-path'] = $v['obfs_settings']['path'];
|
||||
}
|
||||
$servers[] = $shadowsocks[$key]->toArray();
|
||||
}
|
||||
return $servers;
|
||||
|
Loading…
Reference in New Issue
Block a user