feat: 兼容V2bx 的Hysteria2

This commit is contained in:
xboard
2023-11-19 09:54:40 +08:00
parent b489f8f6f1
commit e0eac8f703
2 changed files with 14 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ class UniProxyController extends Controller
{
$this->serverService = $serverService;
$this->nodeId = $request->input('node_id');
$this->nodeType = $request->input('node_type') === 'v2ray' ? 'vmess' : $request->input('node_type');
$this->nodeType = $request->input('node_type');
$this->nodeInfo = $this->serverService->getServer($this->nodeId, $this->nodeType);
if(!$this->nodeInfo) {
Log::channel("daily")->info("$this->nodeId $this->nodeType $this->nodeInfo");