mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 18:48:14 -05:00
Update SingBox.php
This commit is contained in:
parent
60ed240e66
commit
ab34ef327a
@ -148,7 +148,7 @@ class SingBox
|
|||||||
$array['transport']['path'] = $wsSettings['path'];
|
$array['transport']['path'] = $wsSettings['path'];
|
||||||
if (isset($wsSettings['headers']['Host']) && !empty($wsSettings['headers']['Host']))
|
if (isset($wsSettings['headers']['Host']) && !empty($wsSettings['headers']['Host']))
|
||||||
$array['transport']['headers'] = ['Host' => array($wsSettings['headers']['Host'])];
|
$array['transport']['headers'] = ['Host' => array($wsSettings['headers']['Host'])];
|
||||||
$array['transport']['max_early_data'] = 2048;
|
$array['transport']['max_early_data'] = 2560;
|
||||||
$array['transport']['early_data_header_name'] = 'Sec-WebSocket-Protocol';
|
$array['transport']['early_data_header_name'] = 'Sec-WebSocket-Protocol';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -216,7 +216,7 @@ class SingBox
|
|||||||
$array['transport']['path'] = $wsSettings['path'];
|
$array['transport']['path'] = $wsSettings['path'];
|
||||||
if (isset($wsSettings['headers']['Host']) && !empty($wsSettings['headers']['Host']))
|
if (isset($wsSettings['headers']['Host']) && !empty($wsSettings['headers']['Host']))
|
||||||
$array['transport']['headers'] = ['Host' => array($wsSettings['headers']['Host'])];
|
$array['transport']['headers'] = ['Host' => array($wsSettings['headers']['Host'])];
|
||||||
$array['transport']['max_early_data'] = 2048;
|
$array['transport']['max_early_data'] = 2560;
|
||||||
$array['transport']['early_data_header_name'] = 'Sec-WebSocket-Protocol';
|
$array['transport']['early_data_header_name'] = 'Sec-WebSocket-Protocol';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -271,7 +271,7 @@ class SingBox
|
|||||||
if (isset($server['network_settings']['headers']['Host'])) {
|
if (isset($server['network_settings']['headers']['Host'])) {
|
||||||
$array['transport']['headers'] = ['Host' => array($server['network_settings']['headers']['Host'])];
|
$array['transport']['headers'] = ['Host' => array($server['network_settings']['headers']['Host'])];
|
||||||
}
|
}
|
||||||
$array['transport']['max_early_data'] = 2048;
|
$array['transport']['max_early_data'] = 2560;
|
||||||
$array['transport']['early_data_header_name'] = 'Sec-WebSocket-Protocol';
|
$array['transport']['early_data_header_name'] = 'Sec-WebSocket-Protocol';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user