fixed bug when tunnel tokens not defined in config
This commit is contained in:
parent
363620d7fb
commit
3bd9bac390
|
@ -173,6 +173,7 @@ module.exports.create = function (deps, config) {
|
|||
return activeTunnels[data.tunnelUrl].clear(data.jwt);
|
||||
}
|
||||
|
||||
if (config.tunnel) {
|
||||
var confTokens = config.tunnel;
|
||||
if (typeof confTokens === 'string') {
|
||||
confTokens = confTokens.split(',');
|
||||
|
@ -185,6 +186,8 @@ module.exports.create = function (deps, config) {
|
|||
addToken({ jwt: jwt, owner: 'config' });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
storage.all().then(function (stored) {
|
||||
stored.forEach(function (result) {
|
||||
|
|
Loading…
Reference in New Issue