mirror of
https://github.com/v2board/v2board.git
synced 2025-01-11 08:39:09 +08:00
Refine code
Remove duplicates
This commit is contained in:
parent
64dbd11e62
commit
fc8333d757
@ -33,9 +33,6 @@ class ClientController extends Controller
|
|||||||
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Quantumult') !== false) {
|
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Quantumult') !== false) {
|
||||||
die($this->quantumult($user, $server));
|
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) {
|
if (strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'clash') !== false) {
|
||||||
die($this->clash($user, $server));
|
die($this->clash($user, $server));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user