Verified Commit 2a7a428b authored by Aral Balkan's avatar Aral Balkan
Browse files

Add note about possible issue with Linux auto port privilege method

parent 5354c20d
......@@ -71,6 +71,11 @@ class HttpsServer {
// as these so-called privileged ports are a relic from the days of mainframes and they
// actually have a negative impact on security today:
// Note: this might cause issues if https-server is used as a library as it assumes that the
// ===== current app is in index.js and that it can be forked. This might be an issue if a
// process manager is already being used, etc. Worth keeping an eye on and possibly
// making this method an optional part of server startup.
ensureWeCanBindToPort (port) {
if (port < 1024 && os.platform() === 'linux') {
const options = {env: process.env}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment