support clash x

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

View File

@ -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));