1
0
mirror of https://github.com/v2board/v2board.git synced 2025-05-09 01:34:43 +08:00

support clash x

This commit is contained in:
root 2019-11-11 20:42:25 +08:00
parent c935cec6c0
commit 680f2cc052

@ -29,7 +29,7 @@ class ClientController extends Controller
if(strpos($_SERVER['HTTP_USER_AGENT'], 'Quantumult') !== false) {
die($this->quantumult($user, $server));
}
if(strpos($_SERVER['HTTP_USER_AGENT'], 'clash_win') !== false) {
if(strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'clash') !== false) {
die($this->clash($user, $server));
}
die($this->origin($user, $server));