fix minifycore default
Simon Smith committed
Sep 29, 2022 at 20:07 UTC
e7574b5089adc1c659a6ee9f6220e3f83f8329ed
1 file changed
+1
-1
meshcentral.js
+1
-1
@@ -1420,7 +1420,7 @@ function CreateMeshCentralServer(config, args) {
1420
if (obj.args.mpsaliasport != null && (typeof obj.args.mpsaliasport != 'number')) obj.args.mpsaliasport = null;
1421
if (obj.args.rediraliasport != null && (typeof obj.args.rediraliasport != 'number')) obj.args.rediraliasport = null;
1422
if (obj.args.redirport == null) obj.args.redirport = 80;
1423
- if (obj.args.minifycore === 0) obj.args.minifycore = false;
1423
+ if (obj.args.minifycore == null) obj.args.minifycore = false;
1424
if (typeof args.agentidletimeout != 'number') { args.agentidletimeout = 150000; } else { args.agentidletimeout *= 1000 } // Default agent idle timeout is 2m, 30sec.
1425
if ((obj.args.lanonly != true) && (obj.args.webrtconfig == null)) { obj.args.webrtconfig = { iceservers: [{ urls: 'stun:stun.l.google.com:19302' }, { urls: 'stun:stun.services.mozilla.com' }] }; } // Setup default WebRTC STUN servers
1426
if (typeof obj.args.ignoreagenthashcheck == 'string') { if (obj.args.ignoreagenthashcheck == '') { delete obj.args.ignoreagenthashcheck; } else { obj.args.ignoreagenthashcheck = obj.args.ignoreagenthashcheck.split(','); } }