From 40c4d6619dc7d8fdeb2b2ec44a7a7cc0b567dfb6 Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <me@adhisimon.org> Date: Mon, 11 Mar 2019 13:38:27 +0700 Subject: [PATCH] Quickfix for a typo --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 8a9ee75..5a15bbd 100644 --- a/index.js +++ b/index.js @@ -19,13 +19,13 @@ for (let i=0; i < hostsCount; i++) { const options = host.options || config.default_host_options; const optionsWoSSL = JSON.parse(JSON.stringify(options)); delete optionsWoSSL.ssl; - + if (!options) { redbird.register(host.host, host.target); } else { - if isIp(URL.parse(host.host).hostname) { + if (isIp(URL.parse(host.host).hostname)) { redbird.register(host.host, host.target, optionsWoSSL); } else { -- 1.9.0