Update lex.js

Evaluated separately. So if one is falsey they are both not overwritten.
This commit is contained in:
WORMSS 2016-12-21 09:13:36 +00:00 committed by GitHub
parent 03f46861f6
commit 9d326d55f7
1 changed files with 3 additions and 1 deletions

4
lex.js
View File

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