mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-14 11:20:53 +08:00
fix: correct VMess TCP transport configuration in SingBox protocol
- Only add HTTP transport when network_settings.header.type is not 'none' - Use pure TCP (null transport) when header type is 'none' or unset - Align with General protocol implementation and VMess specification This prevents unnecessary HTTP transport layer when using pure TCP.
This commit is contained in:
@@ -193,10 +193,10 @@ class SingBox extends AbstractProtocol
|
||||
}
|
||||
|
||||
$transport = match ($protocol_settings['network']) {
|
||||
'tcp' => [
|
||||
'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', ['/']))
|
||||
],
|
||||
] : null,
|
||||
'ws' => [
|
||||
'type' => 'ws',
|
||||
'path' => data_get($protocol_settings, 'network_settings.path'),
|
||||
|
||||
Reference in New Issue
Block a user