mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 10:38:14 -05:00
feat: Support V2RayNG to get obfs parameters in shadowsocks.
This commit is contained in:
parent
e46f2b3390
commit
b8c2197e89
@ -46,7 +46,11 @@ class V2rayNG
|
||||
['-', '_', ''],
|
||||
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']};path={$server['obfs-path']}";
|
||||
}
|
||||
return $uri."#{$name}\r\n";
|
||||
}
|
||||
|
||||
public static function buildVmess($uuid, $server)
|
||||
|
Loading…
Reference in New Issue
Block a user