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 7eb8565c6d
commit e07694a694
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;

View File

@ -263,7 +263,7 @@ class ClashMeta 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;