mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-28 06:47:24 +08:00
Update Shadowrocket.php
This commit is contained in:
@@ -356,8 +356,10 @@ class Shadowrocket extends AbstractProtocol
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static function buildSocks($password, $server)
|
public static function buildSocks($password, $server)
|
||||||
{
|
{
|
||||||
$uri = "socks://" . base64_encode("{$password}:{$password}@{$server['host']}:{$server['port']}") . "?method=auto";
|
$protocol_settings = $server['protocol_settings'];
|
||||||
|
$name = rawurlencode($server['name']);
|
||||||
|
$uri = "socks://" . base64_encode("{$password}:{$password}@{$server['host']}:{$server['port']}") . "?method=auto#{$name}";
|
||||||
$uri .= "\r\n";
|
$uri .= "\r\n";
|
||||||
return $uri;
|
return $uri;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user