mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-05-26 07:08:01 +00:00
fix: guard certificate and key against undefined before join
This commit is contained in:
@@ -827,8 +827,8 @@ TlsStreamSettings.Cert = class extends XrayCommonClass {
|
||||
} else {
|
||||
return new TlsStreamSettings.Cert(
|
||||
false, '', '',
|
||||
json.certificate.join('\n'),
|
||||
json.key.join('\n'),
|
||||
Array.isArray(json.certificate) ? json.certificate.join('\n') : (json.certificate ?? ''),
|
||||
Array.isArray(json.key) ? json.key.join('\n') : (json.key ?? ''),
|
||||
json.oneTimeLoading,
|
||||
json.usage,
|
||||
json.buildChain,
|
||||
|
||||
Reference in New Issue
Block a user