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 {
|
} else {
|
||||||
return new TlsStreamSettings.Cert(
|
return new TlsStreamSettings.Cert(
|
||||||
false, '', '',
|
false, '', '',
|
||||||
json.certificate.join('\n'),
|
Array.isArray(json.certificate) ? json.certificate.join('\n') : (json.certificate ?? ''),
|
||||||
json.key.join('\n'),
|
Array.isArray(json.key) ? json.key.join('\n') : (json.key ?? ''),
|
||||||
json.oneTimeLoading,
|
json.oneTimeLoading,
|
||||||
json.usage,
|
json.usage,
|
||||||
json.buildChain,
|
json.buildChain,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue