Browse Source

If not port 80 or 443, print outbound port

tags/v0.2.0
Muthu Kumar 7 years ago
parent
commit
39e483c298
  1. 4
      index.js

4
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!");
});

Loading…
Cancel
Save