소스 검색

update trojan

Tokumeikoi 4 년 전
부모
커밋
2d67446ce3
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      app/Utils/Clash.php
  2. 1 1
      app/Utils/QuantumultX.php

+ 1 - 1
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;
     }
 }

+ 1 - 1
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}",