More robust node filename generation.
Do not place "undefined" in parts of filenames even if node files are missing entries like the token.
This commit is contained in:
parent
6c35daec45
commit
b4dc9e37b2
1 changed files with 3 additions and 3 deletions
|
@ -121,10 +121,10 @@ angular.module('ffffng')
|
|||
function toNodeFilename(token, node, nodeSecrets) {
|
||||
return config.server.peersPath + '/' +
|
||||
(
|
||||
node.hostname + '@' +
|
||||
node.mac + '@' +
|
||||
(node.hostname || '') + '@' +
|
||||
(node.mac || '') + '@' +
|
||||
(node.key || '') + '@' +
|
||||
token + '@' +
|
||||
(token || '') + '@' +
|
||||
(nodeSecrets.monitoringToken || '')
|
||||
).toLowerCase();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue