From 1a1256bec41432b9cc60731f9414d63e48b18d28 Mon Sep 17 00:00:00 2001
From: Adhidarma Hadiwinoto <me@adhisimon.org>
Date: Fri, 15 Mar 2019 11:36:53 +0700
Subject: [PATCH] config host no_ssl

---
 index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/index.js b/index.js
index 8d45f04..b60625f 100644
--- a/index.js
+++ b/index.js
@@ -24,7 +24,7 @@ for (let i=0; i < hostsCount; i++) {
         }
         else {
 
-            if (isIp(host.host.split('/')[0])) {
+            if (host.no_ssl || isIp(host.host.split('/')[0])) {
                 console.log('Register ' + host.host + ' without SSL')
                 redbird.register(host.host, host.target, optionsWoSSL);
             }
-- 
1.9.0