Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

FIX: Port is not correctly read

Alicia Sykes28650b7e6d01
diff --git a/server.js b/server.js
index d08fc26a..9bdbca41 100644
--- a/server.js
+++ b/server.js
@@ -12,7 +12,7 @@ require('./src/utils/ConfigValidator');
const isDocker = !!process.env.IS_DOCKER;
/* Checks env var for port. If undefined, will use Port 80 for Docker, or 4000 for metal */
-const port = process.env.PORT || isDocker ? 80 : 4000;
+const port = process.env.PORT || (isDocker ? 80 : 4000);
const getLocalIp = () => {
const dnsLookup = util.promisify(dns.lookup);