Browse Source

Add outbound port to domain when printed

tags/v0.2.0
Muthu Kumar 7 years ago
parent
commit
74d48195c7
  1. 2
      README.md
  2. 2
      index.js

2
README.md

@ -8,7 +8,7 @@
# up
> Current version: `up v.0.1.4 (Pre-Alpha)`
> Current version: `up v.0.1.5 (Pre-Alpha)`
> Notes: `up` has landed in pre-alpha! 🎉 Changelog will be added from `up v.0.2.0` [(Alpha/MVP)](Roadmap.md)\
> ⚠️ ❌ `up` is still not ready for use yet! Do not attempt to use this in development or production until alpha!

2
index.js

@ -26,6 +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;
console.log("Done! Your static server has been set up!\nPoint your domain to this server and check " + chalk.cyan(domain) + " to verify!");
});
@ -36,6 +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;
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