Update Shadowrocket.php
This commit is contained in:
@@ -357,7 +357,9 @@ class Shadowrocket extends AbstractProtocol
|
||||
|
||||
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";
|
||||
return $uri;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user