Ver código fonte

Fix allowInsecure

Julian Liu 4 anos atrás
pai
commit
91eb83388c
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      app/Utils/Surge.php

+ 1 - 1
app/Utils/Surge.php

@@ -38,7 +38,7 @@ class Surge
             if ($server['tlsSettings']) {
                 $tlsSettings = json_decode($server['tlsSettings'], true);
                 if (isset($tlsSettings['allowInsecure']) && !empty($tlsSettings['allowInsecure']))
-                    array_push($config, 'skip-cert-verify=' . $tlsSettings['allowInsecure'] ? 'true' : 'false');
+                    array_push($config, 'skip-cert-verify=' . ($tlsSettings['allowInsecure'] ? 'true' : 'false'));
                 if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
                     array_push($config, "sni={$tlsSettings['serverName']}");
             }