为ClashVerge增加hysteria1/2的订阅

This commit is contained in:
wyx2685
2023-10-19 02:47:43 +09:00
parent dffe39b6d9
commit 19521a1393
2 changed files with 38 additions and 0 deletions

View File

@ -124,6 +124,8 @@ class UniProxyController extends Controller
if ($this->nodeInfo->version == 1) {
$response['obfs'] = $this->nodeInfo->obfs_password ?? null;
} elseif ($this->nodeInfo->version == 2) {
//TODO 处理hy2客户端上下行宽带设置
$response['ignore_client_bandwidth'] = true;
$response['obfs'] = $this->nodeInfo->obfs ?? null;
$response['obfs-password'] = $this->nodeInfo->obfs_password ?? null;
}