mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 10:38:14 -05:00
fix: resolve array spread operator syntax in VLESS tls_settings
This commit is contained in:
parent
c9c72cc847
commit
9ca5d96048
@ -116,9 +116,11 @@ class UniProxyController extends Controller
|
|||||||
...$baseConfig,
|
...$baseConfig,
|
||||||
'tls' => (int) $protocolSettings['tls'],
|
'tls' => (int) $protocolSettings['tls'],
|
||||||
'flow' => $protocolSettings['flow'],
|
'flow' => $protocolSettings['flow'],
|
||||||
'tls_settings' => [...(int) $protocolSettings['tls'] === 1
|
'tls_settings' => [
|
||||||
? $protocolSettings['tls_settings']
|
...((int) $protocolSettings['tls'] === 1
|
||||||
: $protocolSettings['reality_settings']]
|
? ($protocolSettings['tls_settings'] ?? [])
|
||||||
|
: ($protocolSettings['reality_settings'] ?? []))
|
||||||
|
]
|
||||||
],
|
],
|
||||||
'hysteria' => [
|
'hysteria' => [
|
||||||
'server_port' => (int) $serverPort,
|
'server_port' => (int) $serverPort,
|
||||||
|
Loading…
Reference in New Issue
Block a user