fixed config writing

This commit is contained in:
antelle 2020-05-22 20:55:05 +02:00
parent ccce95d4fe
commit a7193fd783
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
1 changed files with 1 additions and 1 deletions

View File

@ -823,7 +823,7 @@ function saveConfig(name, data, key) {
data = Buffer.from(data);
if (configEncryptionKey) {
if (key) {
const crypto = require('crypto');
const cipher = crypto.createCipheriv(
'aes-256-cbc',