Explorar el Código

Fix allowInsecure

Julian Liu hace 4 años
padre
commit
f3ef9e457e
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      app/Utils/QuantumultX.php

+ 2 - 2
app/Utils/QuantumultX.php

@@ -46,9 +46,9 @@ class QuantumultX
             if ($server['tlsSettings']) {
                 $tlsSettings = json_decode($server['tlsSettings'], true);
                 if (isset($tlsSettings['allowInsecure']) && !empty($tlsSettings['allowInsecure']))
-                    array_push($config, 'tls-verification=' . $tlsSettings['allowInsecure'] ? 'false' : 'true');
+                    array_push($config, 'tls-verification=' . ($tlsSettings['allowInsecure'] ? 'false' : 'true'));
                 if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
-                    array_push($config, "sni={$tlsSettings['serverName']}");
+                    array_push($config, "tls-host={$tlsSettings['serverName']}");
             }
         }
         if ($server['network'] === 'ws') {