mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-24 20:17:32 +08:00
fix(subscribe): fix vmess+tcp+http subscription in Clash and Clash Meta
This commit is contained in:
@@ -205,7 +205,7 @@ class Clash extends AbstractProtocol
|
|||||||
if (data_get($protocol_settings, 'network_settings.header.type', 'none') !== 'none') {
|
if (data_get($protocol_settings, 'network_settings.header.type', 'none') !== 'none') {
|
||||||
$array['http-opts'] = [
|
$array['http-opts'] = [
|
||||||
'headers' => data_get($protocol_settings, 'network_settings.header.request.headers'),
|
'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;
|
break;
|
||||||
|
|||||||
@@ -263,7 +263,7 @@ class ClashMeta extends AbstractProtocol
|
|||||||
if (data_get($protocol_settings, 'network_settings.header.type', 'none') !== 'none') {
|
if (data_get($protocol_settings, 'network_settings.header.type', 'none') !== 'none') {
|
||||||
$array['http-opts'] = [
|
$array['http-opts'] = [
|
||||||
'headers' => data_get($protocol_settings, 'network_settings.header.request.headers'),
|
'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;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user