Add hostname override

This commit is contained in:
Christopher Cookman 2025-04-19 09:26:58 -06:00
parent 0d5e5c65a3
commit 2ee4718028

View file

@ -60,7 +60,7 @@ var roomList = [];
// IEM WebSocket // IEM WebSocket
app.ws('/iem', (ws, req) => { app.ws('/iem', (ws, req) => {
console.log(`connection from ${req.ip}`); console.log(`connection from ${req.ip}`);
const hostname = os.hostname(); const hostname = process.env.HOST_OVERRIDE || os.hostname();
ws.send(JSON.stringify({ ws.send(JSON.stringify({
"type": "connection-info", "type": "connection-info",