From 2ee47180288b7e417dcdd21730baf8a3a93930fc Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Sat, 19 Apr 2025 09:26:58 -0600 Subject: [PATCH] Add hostname override --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 8d4b7cd..1a7e9c6 100644 --- a/index.js +++ b/index.js @@ -60,7 +60,7 @@ var roomList = []; // IEM WebSocket app.ws('/iem', (ws, req) => { console.log(`connection from ${req.ip}`); - const hostname = os.hostname(); + const hostname = process.env.HOST_OVERRIDE || os.hostname(); ws.send(JSON.stringify({ "type": "connection-info",