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 again
This commit is contained in:
parent
9ca5d96048
commit
ff259aee44
@ -116,11 +116,11 @@ class UniProxyController extends Controller
|
||||
...$baseConfig,
|
||||
'tls' => (int) $protocolSettings['tls'],
|
||||
'flow' => $protocolSettings['flow'],
|
||||
'tls_settings' => [
|
||||
...((int) $protocolSettings['tls'] === 1
|
||||
? ($protocolSettings['tls_settings'] ?? [])
|
||||
: ($protocolSettings['reality_settings'] ?? []))
|
||||
]
|
||||
'tls_settings' =>
|
||||
match ((int) $protocolSettings['tls']) {
|
||||
2 => $protocolSettings['reality_settings'],
|
||||
default => $protocolSettings['tls_settings']
|
||||
}
|
||||
],
|
||||
'hysteria' => [
|
||||
'server_port' => (int) $serverPort,
|
||||
|
Loading…
Reference in New Issue
Block a user