feat: 新增hiddify自动下发hy2

This commit is contained in:
xboard 2023-11-24 00:02:33 +08:00
parent d776ca32c5
commit 4d30a8ade5
2 changed files with 3 additions and 2 deletions

View File

@ -40,7 +40,8 @@ class ClientController extends Controller
'ClashMetaForAndroid' => '2.9.0', 'ClashMetaForAndroid' => '2.9.0',
'Nekoray' => '3.24', 'Nekoray' => '3.24',
'verge' => '1.3.8', 'verge' => '1.3.8',
'ClashX Meta' => '1.3.5' 'ClashX Meta' => '1.3.5',
'Hiddify' => '0.1.0'
]; ];
foreach($minSupportHy2ClinetVersionMap as $client => $minVersion){ foreach($minSupportHy2ClinetVersionMap as $client => $minVersion){
if (stripos($flag, $client) !== false && $this->versionCompare($version, $minVersion)) { if (stripos($flag, $client) !== false && $this->versionCompare($version, $minVersion)) {

View File

@ -5,7 +5,7 @@ use App\Utils\Helper;
class SingBox class SingBox
{ {
public $flag = 'sing-box'; public $flag = 'sing-box,Hiddify';
private $servers; private $servers;
private $user; private $user;