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) {