Page MenuHomePhabricator

D5973.id19984.diff
No OneTemporary

D5973.id19984.diff

diff --git a/keyserver/src/keyserver.js b/keyserver/src/keyserver.js
--- a/keyserver/src/keyserver.js
+++ b/keyserver/src/keyserver.js
@@ -160,9 +160,16 @@
server.use(squadCalBaseRoutePath, squadCalRouter);
}
- server.listen(
- parseInt(process.env.PORT, 10) || 3000,
- process.env.COMM_LISTEN_ADDR || 'localhost',
- );
+ const listenAddress = (() => {
+ if (process.env.COMM_LISTEN_ADDR) {
+ return process.env.COMM_LISTEN_ADDR;
+ } else if (process.env.NODE_ENV === 'development') {
+ return undefined;
+ } else {
+ return 'localhost';
+ }
+ })();
+
+ server.listen(parseInt(process.env.PORT, 10) || 3000, listenAddress);
}
})();

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 2:12 AM (17 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2692723
Default Alt Text
D5973.id19984.diff (717 B)

Event Timeline