mirror of
				https://github.com/v2board/v2board.git
				synced 2025-11-01 01:41:47 +08:00 
			
		
		
		
	update: clash x compatibility
This commit is contained in:
		| @@ -179,6 +179,6 @@ class Clash | |||||||
|     { |     { | ||||||
|         // fix clash x dns mode |         // fix clash x dns mode | ||||||
|         preg_match('#(ClashX)[/ ]([0-9.]*)#', $_SERVER['HTTP_USER_AGENT'], $matches); |         preg_match('#(ClashX)[/ ]([0-9.]*)#', $_SERVER['HTTP_USER_AGENT'], $matches); | ||||||
|         if ($matches[2] < '1.96.2') $config['dns']['enhanced-mode'] = 'redir-host'; |         if (isset($matches[2]) && $matches[2] < '1.96.2') $config['dns']['enhanced-mode'] = 'redir-host'; | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user