Skip to content

Node.js based forum software built for the modern web

fixing issue where the default for "use_port" ended up being no. Now yes.

Julian Lamb87840d4c99c
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\'',
}, {