We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec49ba3 commit 58ef46fCopy full SHA for 58ef46f
1 file changed
app/Services/ServerService.php
@@ -183,7 +183,10 @@ public static function buildNodeConfig(Server $node): array
183
...$baseConfig,
184
'tls' => (int) $protocolSettings['tls'],
185
'flow' => $protocolSettings['flow'],
186
- 'decryption' => data_get($protocolSettings, 'encryption.decryption'),
+ 'decryption' => match (data_get($protocolSettings, 'encryption.enabled')) {
187
+ true => data_get($protocolSettings, 'encryption.decryption'),
188
+ default => null,
189
+ },
190
'tls_settings' => match ((int) $protocolSettings['tls']) {
191
2 => $protocolSettings['reality_settings'],
192
default => $protocolSettings['tls_settings'],
0 commit comments