From a5605a0349adc22c3e946cce161df6ac94d72b6c Mon Sep 17 00:00:00 2001 From: baldo Date: Fri, 20 May 2016 22:39:59 +0200 Subject: [PATCH] Fix: Don't put undefined in key file name. --- server/services/nodeService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/services/nodeService.js b/server/services/nodeService.js index 2b33397..b380b30 100644 --- a/server/services/nodeService.js +++ b/server/services/nodeService.js @@ -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) {