Fixed AllowedUserIP parsing.

This commit is contained in:
Ylian Saint-Hilaire 2019-01-07 13:18:20 -08:00
parent d1e3eda1f1
commit b695b2bf80
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -1,6 +1,6 @@
{
"name": "meshcentral",
"version": "0.2.5-w",
"version": "0.2.5-x",
"keywords": [
"Remote Management",
"Intel AMT",