mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 01:11:46 +08:00 
			
		
		
		
	quantumultx: fixes tls-verification
Signed-off-by: Beta Soft <betaxab@gmail.com>
This commit is contained in:
		| @@ -18,7 +18,8 @@ class QuantumultX | |||||||
|                 $tlsSettings = json_decode($server->tlsSettings); |                 $tlsSettings = json_decode($server->tlsSettings); | ||||||
|                 array_push($config, 'obfs=over-tls'); |                 array_push($config, 'obfs=over-tls'); | ||||||
|                 if (isset($tlsSettings->allowInsecure)) { |                 if (isset($tlsSettings->allowInsecure)) { | ||||||
|                     array_push($config, $server->allow_insecure ? 'tls-verification=true' : 'tls-verification=false'); |                     // Tips: allowInsecure=false = tls-verification=true | ||||||
|  |                     array_push($config, $tlsSettings->allowInsecure ? 'tls-verification=false' : 'tls-verification=true'); | ||||||
|                 } |                 } | ||||||
|                 if (isset($tlsSettings->serverName)) { |                 if (isset($tlsSettings->serverName)) { | ||||||
|                     array_push($config, "obfs-host={$tlsSettings->serverName}"); |                     array_push($config, "obfs-host={$tlsSettings->serverName}"); | ||||||
| @@ -31,7 +32,7 @@ class QuantumultX | |||||||
|                 $tlsSettings = json_decode($server->tlsSettings); |                 $tlsSettings = json_decode($server->tlsSettings); | ||||||
|                 array_push($config, 'obfs=wss'); |                 array_push($config, 'obfs=wss'); | ||||||
|                 if (isset($tlsSettings->allowInsecure)) { |                 if (isset($tlsSettings->allowInsecure)) { | ||||||
|                     array_push($config, $server->allow_insecure ? 'tls-verification=true' : 'tls-verification=false'); |                     array_push($config, $tlsSettings->allowInsecure ? 'tls-verification=false' : 'tls-verification=true'); | ||||||
|                 } |                 } | ||||||
|             } else { |             } else { | ||||||
|                 array_push($config, 'obfs=ws'); |                 array_push($config, 'obfs=ws'); | ||||||
| @@ -55,7 +56,8 @@ class QuantumultX | |||||||
|             "password={$password}", |             "password={$password}", | ||||||
|             "over-tls=true", |             "over-tls=true", | ||||||
|             $server->server_name ? "tls-host={$server->server_name}" : "", |             $server->server_name ? "tls-host={$server->server_name}" : "", | ||||||
|             $server->allow_insecure ? 'tls-verification=true' : 'tls-verification=false', |             // Tips: allowInsecure=false = tls-verification=true | ||||||
|  |             $server->allow_insecure ? 'tls-verification=false' : 'tls-verification=true', | ||||||
|             "fast-open=false", |             "fast-open=false", | ||||||
|             "udp-relay=false", |             "udp-relay=false", | ||||||
|             "tag={$server->name}" |             "tag={$server->name}" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user