From 9d326d55f74eb8a171facf6266f098b5afc5ee6c Mon Sep 17 00:00:00 2001 From: WORMSS Date: Wed, 21 Dec 2016 09:13:36 +0000 Subject: [PATCH] Update lex.js Evaluated separately. So if one is falsey they are both not overwritten. --- lex.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lex.js b/lex.js index 11a3e5a..4f8fc23 100644 --- a/lex.js +++ b/lex.js @@ -23,8 +23,10 @@ module.exports.create = function (opts) { var ports = port; var servers = []; - if (!plainPorts || !ports) { + if (!plainPorts) { plainPorts = 80; + } + if (!ports) { ports = 443; }