Fix: Don't put undefined in key file name.

This commit is contained in:
baldo 2016-05-20 22:39:59 +02:00
parent 8102181a7e
commit a5605a0349

View file

@ -54,7 +54,7 @@ angular.module('ffffng')
function writeNodeFile(isUpdate, token, node, nodeSecrets, callback) {
var filename =
config.server.peersPath + '/' + (node.hostname + '@' + node.mac + '@' + node.key + '@' + token).toLowerCase();
config.server.peersPath + '/' + (node.hostname + '@' + node.mac + '@' + (node.key || '') + '@' + token).toLowerCase();
var data = '';
_.each(linePrefixes, function (prefix, key) {