From b87840d4c99c5ff73fb30246073e064b69df7167 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 6 Nov 2013 11:36:00 -0500 Subject: [PATCH] fixing issue where the default for "use_port" ended up being no. Now yes. --- src/install.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/install.js b/src/install.js index 8541a0e15e..437168061f 100644 --- a/src/install.js +++ b/src/install.js @@ -24,7 +24,7 @@ var async = require('async'), }, { name: 'use_port', description: 'Use a port number to access NodeBB?', - 'default': (nconf.get('use_port') ? 'y' : 'n') || 'y', + 'default': (nconf.get('use_port') !== undefined ? (nconf.get('use_port') ? 'y' : 'n') : 'y'), pattern: /y[es]*|n[o]?/, message: 'Please enter \'yes\' or \'no\'', }, {