Add hostname override
This commit is contained in:
parent
0d5e5c65a3
commit
2ee4718028
2
index.js
2
index.js
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue