mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 09:21:46 +08:00 
			
		
		
		
	update trojan
This commit is contained in:
		| @@ -42,7 +42,7 @@ class Clash | |||||||
|         $array['port'] = $server->port; |         $array['port'] = $server->port; | ||||||
|         $array['password'] = $password; |         $array['password'] = $password; | ||||||
|         $array['sni'] = $server->server_name; |         $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; |         return $array; | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   | |||||||
| @@ -33,7 +33,7 @@ class QuantumultX | |||||||
|  |  | ||||||
|     public static function buildTrojan($password, $server) |     public static function buildTrojan($password, $server) | ||||||
|     { |     { | ||||||
|         $tlsVerification = $server->allow_insecure ? true : false; |         $tlsVerification = (string)($server->allow_insecure ? true : false); | ||||||
|         $config = [ |         $config = [ | ||||||
|             "trojan={$server->host}:{$server->port}", |             "trojan={$server->host}:{$server->port}", | ||||||
|             "password={$password}", |             "password={$password}", | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user