mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 09:21:46 +08:00 
			
		
		
		
	clash: add tls servername support
Signed-off-by: Beta Soft <betaxab@gmail.com>
This commit is contained in:
		| @@ -19,6 +19,7 @@ class Clash | |||||||
|             $tlsSettings = json_decode($server->tlsSettings); |             $tlsSettings = json_decode($server->tlsSettings); | ||||||
|             $array['tls'] = true; |             $array['tls'] = true; | ||||||
|             if (isset($tlsSettings->allowInsecure)) $array['skip-cert-verify'] = ($tlsSettings->allowInsecure ? true : false ); |             if (isset($tlsSettings->allowInsecure)) $array['skip-cert-verify'] = ($tlsSettings->allowInsecure ? true : false ); | ||||||
|  |             if (isset($tlsSettings->serverName)) $array['servername'] = $tlsSettings->serverName; | ||||||
|         } |         } | ||||||
|         if ($server->network == 'ws') { |         if ($server->network == 'ws') { | ||||||
|             $array['network'] = $server->network; |             $array['network'] = $server->network; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user