From 63430e3e47320be379acaaba9666347f10f3deeb Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Mon, 7 Jan 2019 13:18:20 -0800 Subject: [PATCH] Fixed AllowedUserIP parsing. --- meshcentral.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meshcentral.js b/meshcentral.js index 03620f3d..bab0da88 100644 --- a/meshcentral.js +++ b/meshcentral.js @@ -252,7 +252,7 @@ function CreateMeshCentralServer(config, args) { if (obj.args.mpsaliasport != null && (typeof obj.args.mpsaliasport != 'number')) obj.args.mpsaliasport = null; if (obj.args.notls == null && obj.args.redirport == null) obj.args.redirport = 80; if (obj.args.minifycore === 0) obj.args.minifycore = false; - if (typeof obj.args.userallowedip == 'string') { if (obj.args.userallowedip == '') { obj.args.userallowedip = null; } else { obj.args.userallowedip = obj.userallowedip.split(','); } } + if (typeof obj.args.userallowedip == 'string') { if (obj.args.userallowedip == '') { obj.args.userallowedip = null; } else { obj.args.userallowedip = obj.args.userallowedip.split(','); } } if (typeof obj.args.debug == 'number') obj.debugLevel = obj.args.debug; if (obj.args.debug == true) obj.debugLevel = 1; obj.db = require('./db.js').CreateDB(obj); diff --git a/package.json b/package.json index be63fa5c..2c004d72 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.2.5-w", + "version": "0.2.5-x", "keywords": [ "Remote Management", "Intel AMT",