Browse Source

Protocols: Surfboard: The SS can now be directly supported

Alpha Kane 3 years ago
parent
commit
239eb2075c
1 changed files with 3 additions and 4 deletions
  1. 3 4
      app/Http/Controllers/Client/Protocols/Surfboard.php

+ 3 - 4
app/Http/Controllers/Client/Protocols/Surfboard.php

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