fix(subscribe): fix vmess+tcp+http subscription in Clash and Clash Meta

This commit is contained in:
xboard
2025-08-24 18:07:36 +08:00
parent 9bdd7b8a58
commit 84d5a4f005
2 changed files with 2 additions and 2 deletions

View File

@@ -205,7 +205,7 @@ class Clash extends AbstractProtocol
if (data_get($protocol_settings, 'network_settings.header.type', 'none') !== 'none') {
$array['http-opts'] = [
'headers' => data_get($protocol_settings, 'network_settings.header.request.headers'),
'path' => \Illuminate\Support\Arr::random(data_get($protocol_settings, 'network_settings.header.request.path', ['/']))
'path' => data_get($protocol_settings, 'network_settings.header.request.path', ['/'])
];
}
break;