diff --git a/app/Utils/Surge.php b/app/Utils/Surge.php index 743ac6dc..34873996 100644 --- a/app/Utils/Surge.php +++ b/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']}"); }