mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-02-02 07:28:13 -05:00
Fixed Vmess TCP
This commit is contained in:
parent
51664a4da0
commit
676e6bc57c
@ -82,9 +82,11 @@ class General implements ProtocolInterface
|
|||||||
|
|
||||||
switch ($protocol_settings['network']) {
|
switch ($protocol_settings['network']) {
|
||||||
case 'tcp':
|
case 'tcp':
|
||||||
$config['type'] = 'http';
|
if (data_get($protocol_settings, 'network_settings.header.type', 'none') !== 'none') {
|
||||||
|
$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['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'), ['/']) : null;
|
$config['host'] = data_get($protocol_settings, 'network_settings.headers.Host') ? \Arr::random(data_get($protocol_settings, 'network_settings.headers.Host'), ['/']) : null;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 'ws':
|
case 'ws':
|
||||||
$config['type'] = 'ws';
|
$config['type'] = 'ws';
|
||||||
|
Loading…
Reference in New Issue
Block a user