mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-05-18 12:05:53 +00:00
fix: guard certificate and key against undefined before join
This commit is contained in:
parent
e4218a1029
commit
9b0fd047cb
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue