mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 18:48:14 -05:00
fix: correct know file issues
This commit is contained in:
parent
51664a4da0
commit
1ddfd44d29
@ -41,7 +41,8 @@ class ClientController extends Controller
|
|||||||
'loon' => '637',
|
'loon' => '637',
|
||||||
'v2rayng' => '1.9.5',
|
'v2rayng' => '1.9.5',
|
||||||
'v2rayN' => '6.31',
|
'v2rayN' => '6.31',
|
||||||
'surge' => '2398'
|
'surge' => '2398',
|
||||||
|
'flclash' => '0.8.0'
|
||||||
];
|
];
|
||||||
|
|
||||||
private const ALLOWED_TYPES = ['vmess', 'vless', 'trojan', 'hysteria', 'shadowsocks', 'hysteria2'];
|
private const ALLOWED_TYPES = ['vmess', 'vless', 'trojan', 'hysteria', 'shadowsocks', 'hysteria2'];
|
||||||
@ -127,12 +128,13 @@ class ClientController extends Controller
|
|||||||
|
|
||||||
private function checkHy2Support(string $flag, string $version): bool
|
private function checkHy2Support(string $flag, string $version): bool
|
||||||
{
|
{
|
||||||
|
$result = false;
|
||||||
foreach (self::CLIENT_VERSIONS as $client => $minVersion) {
|
foreach (self::CLIENT_VERSIONS as $client => $minVersion) {
|
||||||
if (stripos($flag, $client) !== false) {
|
if (stripos($flag, $client) !== false) {
|
||||||
return version_compare($version, $minVersion, '>=');
|
$result = $result || version_compare($version, $minVersion, '>=');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return $result || !count(self::CLIENT_VERSIONS);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function filterServers(array $servers, array $types, ?array $filters, bool $supportHy2): array
|
private function filterServers(array $servers, array $types, ?array $filters, bool $supportHy2): array
|
||||||
|
@ -9,7 +9,7 @@ use Symfony\Component\Yaml\Yaml;
|
|||||||
|
|
||||||
class ClashMeta implements ProtocolInterface
|
class ClashMeta implements ProtocolInterface
|
||||||
{
|
{
|
||||||
public $flags = ['meta', 'verge'];
|
public $flags = ['meta', 'verge', 'flclash'];
|
||||||
private $servers;
|
private $servers;
|
||||||
private $user;
|
private $user;
|
||||||
|
|
||||||
|
8
public/assets/admin/assets/index.js
vendored
8
public/assets/admin/assets/index.js
vendored
File diff suppressed because one or more lines are too long
292
public/assets/admin/assets/vendor.js
vendored
292
public/assets/admin/assets/vendor.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user