mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-28 14:57:22 +08:00
feat: Support shadowrocket to get obfs parameters in shadowsocks.
This commit is contained in:
@@ -58,7 +58,11 @@ class Shadowrocket
|
|||||||
['-', '_', ''],
|
['-', '_', ''],
|
||||||
base64_encode("{$server['cipher']}:{$password}")
|
base64_encode("{$server['cipher']}:{$password}")
|
||||||
);
|
);
|
||||||
return "ss://{$str}@{$server['host']}:{$server['port']}#{$name}\r\n";
|
$uri = "ss://{$str}@{$server['host']}:{$server['port']}";
|
||||||
|
if ($server['obfs'] == 'http') {
|
||||||
|
$uri .= "?plugin=obfs-local;obfs=http;obfs-host={$server['obfs-host']};obfs-uri={$server['obfs-path']}";
|
||||||
|
}
|
||||||
|
return $uri."#{$name}\r\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function buildVmess($uuid, $server)
|
public static function buildVmess($uuid, $server)
|
||||||
|
|||||||
Reference in New Issue
Block a user