mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-14 11:20:53 +08:00
fix(subscribe): fix vmess+tcp+http subscription in general and singbox
This commit is contained in:
@@ -92,8 +92,8 @@ class General extends AbstractProtocol
|
||||
$config['type'] = data_get($protocol_settings, 'network_settings.header.type', 'http');
|
||||
$config['path'] = Arr::random(data_get($protocol_settings, 'network_settings.header.request.path', ['/']));
|
||||
$config['host'] =
|
||||
data_get($protocol_settings, 'network_settings.headers.Host')
|
||||
? Arr::random(data_get($protocol_settings, 'network_settings.headers.Host', ['/']), )
|
||||
data_get($protocol_settings, 'network_settings.header.request.headers.Host')
|
||||
? Arr::random(data_get($protocol_settings, 'network_settings.header.request.headers.Host', ['/']), )
|
||||
: null;
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -206,7 +206,8 @@ class SingBox extends AbstractProtocol
|
||||
$transport = match ($protocol_settings['network']) {
|
||||
'tcp' => data_get($protocol_settings, 'network_settings.header.type', 'none') !== 'none' ? [
|
||||
'type' => 'http',
|
||||
'path' => Arr::random(data_get($protocol_settings, 'network_settings.header.request.path', ['/']))
|
||||
'path' => Arr::random(data_get($protocol_settings, 'network_settings.header.request.path', ['/'])),
|
||||
'host' => data_get($protocol_settings, 'network_settings.header.request.headers.Host', [])
|
||||
] : null,
|
||||
'ws' => [
|
||||
'type' => 'ws',
|
||||
|
||||
Reference in New Issue
Block a user