mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 10:38:14 -05:00
feat: Support shadowrocket to get obfs parameters in shadowsocks.
This commit is contained in:
parent
dd8267097e
commit
e46f2b3390
@ -58,7 +58,11 @@ class Shadowrocket
|
||||
['-', '_', ''],
|
||||
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)
|
||||
@ -283,4 +287,4 @@ class Shadowrocket
|
||||
}
|
||||
return $uri;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user