Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3513032
D5973.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
717 B
Referenced Files
None
Subscribers
None
D5973.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 22, 9:51 PM (13 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2692723
Default Alt Text
D5973.diff (717 B)
Attached To
Mode
D5973: [keyserver] Listen on all addresses in dev mode
Attached
Detach File
Event Timeline
Log In to Comment