mirror of
https://github.com/therootcompany/greenlock-express.js.git
synced 2025-04-09 09:00:41 +00:00
Update lex.js
Evaluated separately. So if one is falsey they are both not overwritten.
This commit is contained in:
parent
03f46861f6
commit
9d326d55f7
4
lex.js
4
lex.js
@ -23,8 +23,10 @@ module.exports.create = function (opts) {
|
|||||||
var ports = port;
|
var ports = port;
|
||||||
var servers = [];
|
var servers = [];
|
||||||
|
|
||||||
if (!plainPorts || !ports) {
|
if (!plainPorts) {
|
||||||
plainPorts = 80;
|
plainPorts = 80;
|
||||||
|
}
|
||||||
|
if (!ports) {
|
||||||
ports = 443;
|
ports = 443;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user