Fix: Don't put undefined in key file name.
This commit is contained in:
parent
8102181a7e
commit
a5605a0349
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue