From 16cf1f135a1308fc30bcd5ae7ef42cea2505cdea Mon Sep 17 00:00:00 2001 From: Julian Liu Date: Fri, 11 Dec 2020 01:11:04 +0800 Subject: [PATCH] Fix allowInsecure --- app/Utils/Surfboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Utils/Surfboard.php b/app/Utils/Surfboard.php index 86ebad3a..564d4bcc 100644 --- a/app/Utils/Surfboard.php +++ b/app/Utils/Surfboard.php @@ -39,7 +39,7 @@ class Surfboard 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']}"); }