update: hysteria2

This commit is contained in:
v2board
2023-09-28 13:34:58 +08:00
parent 3f24ba9917
commit 4434b13361
5 changed files with 89 additions and 3 deletions

View File

@ -24,7 +24,9 @@ class HysteriaController extends Controller
'up_mbps' => 'required|numeric|min:1',
'down_mbps' => 'required|numeric|min:1',
'server_name' => 'nullable',
'insecure' => 'required|in:0,1'
'insecure' => 'required|in:0,1',
'obfs_type' => 'nullable|in:salamander',
'ignore_client_bandwidth' => 'required|in:0,1'
]);
if ($request->input('id')) {

View File

@ -108,7 +108,9 @@ class UniProxyController extends Controller
'server_name' => $this->nodeInfo->server_name,
'up_mbps' => $this->nodeInfo->up_mbps,
'down_mbps' => $this->nodeInfo->down_mbps,
'obfs' => Helper::getServerKey($this->nodeInfo->created_at, 16)
'obfs' => Helper::getServerKey($this->nodeInfo->created_at, 16),
'obfs_type' => $this->nodeInfo->obfs_type,
'ignore_client_bandwidth' => !!$this->nodeInfo->ignore_client_bandwidth
];
break;
case "vless":