feat: 增加Vmess tcp http下发支持

This commit is contained in:
xboard
2023-12-18 09:40:35 +08:00
parent 0ef19e91bb
commit 9dcb9cee32
10 changed files with 82 additions and 12 deletions

View File

@@ -185,6 +185,10 @@ class Shadowrocket
$config['obfs'] = $tcpSettings['header']['type'];
if (isset($tcpSettings['header']['request']['path'][0]) && !empty($tcpSettings['header']['request']['path'][0]))
$config['path'] = $tcpSettings['header']['request']['path'][0];
if (isset($tcpSettings['header']['request']['headers']['Host'][0])){
$hosts = $tcpSettings['header']['request']['headers']['Host'];
$config['obfsParam'] = $hosts[array_rand($hosts)];
}
}
}
if ($server['network'] === 'ws') {