From 39e483c29886e82d704c7a012f420f545ace536e Mon Sep 17 00:00:00 2001 From: Muthu Kumar Date: Sat, 4 Nov 2017 09:56:37 +0530 Subject: [PATCH] If not port 80 or 443, print outbound port --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index cad090e..40d5334 100644 --- a/index.js +++ b/index.js @@ -26,7 +26,7 @@ program outPort = outPort || "80"; // This is a string because regex needs to validate it. if (!validate(domain, outPort)) return; //Validates domain and outport, and if invalid, throws and returns. createStaticServer(domain, outPort); - if (outPort != "80") domain = domain + ":" + outPort; + if (outPort != "80" || "443") domain = domain + ":" + outPort; console.log("Done! Your static server has been set up!\nPoint your domain to this server and check " + chalk.cyan(domain) + " to verify!"); }); @@ -37,7 +37,7 @@ program outPort = outPort || "80"; // This is a string because regex needs to validate it. if (!validate(domain, inPort, outPort)) return; createProxyServer(domain, inPort, outPort); - if (outPort != "80") domain = domain + ":" + outPort; + if (outPort != "80" || "443") domain = domain + ":" + outPort; console.log("Done! Your reverse proxy server has been set up!\nPoint your domain to this server and check " + chalk.cyan(domain) + " to verify!"); });