diff --git a/app/Utils/Clash.php b/app/Utils/Clash.php index 2b9c6198..a5a1b022 100644 --- a/app/Utils/Clash.php +++ b/app/Utils/Clash.php @@ -42,7 +42,7 @@ class Clash $array['port'] = $server->port; $array['password'] = $password; $array['sni'] = $server->server_name; - $array['skip-cert-verify'] = $server->allow_insecure ? true : false; + $array['skip-cert-verify'] = (string)($server->allow_insecure ? true : false); return $array; } } diff --git a/app/Utils/QuantumultX.php b/app/Utils/QuantumultX.php index 256db12c..ac8b1e0d 100644 --- a/app/Utils/QuantumultX.php +++ b/app/Utils/QuantumultX.php @@ -33,7 +33,7 @@ class QuantumultX public static function buildTrojan($password, $server) { - $tlsVerification = $server->allow_insecure ? true : false; + $tlsVerification = (string)($server->allow_insecure ? true : false); $config = [ "trojan={$server->host}:{$server->port}", "password={$password}",