Protocols: Surfboard: The SS can now be directly supported

This commit is contained in:
Alpha Kane 2021-10-07 23:01:39 +08:00
parent b40272a8fa
commit 239eb2075c
No known key found for this signature in database
GPG Key ID: 180A31AB98D5C156

View File

@ -67,12 +67,11 @@ class Surfboard
public static function buildShadowsocks($password, $server) public static function buildShadowsocks($password, $server)
{ {
$config = [ $config = [
"{$server['name']}=custom", "{$server['name']}=ss",
"{$server['host']}", "{$server['host']}",
"{$server['port']}", "{$server['port']}",
"{$server['cipher']}", "encrypt-method={$server['cipher']}",
"{$password}", "password={$password}",
'https://raw.githubusercontent.com/Hackl0us/proxy-tool-backup/master/SSEncrypt.module',
'tfo=true', 'tfo=true',
'udp-relay=true' 'udp-relay=true'
]; ];