support clash for android subscribe

This commit is contained in:
Tokumeikoi 2020-02-23 20:02:34 +08:00
parent bfeab8eae2
commit 64dbd11e62
2 changed files with 4 additions and 1 deletions

View File

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

File diff suppressed because one or more lines are too long