diff --git a/server.js b/server.js index 7490910..d916052 100644 --- a/server.js +++ b/server.js @@ -61,7 +61,7 @@ server.on('upgrade', (req, socket, head) => { // Handle new client connections on the wss wss.on('connection', (clientSocket, req, remoteSocket) => { const clientId = ++connectionCounter; - const clientIdAndHost = `${clientId} ${req.hostname}` + const clientIdAndHost = `${clientId} ${req.host}` tsLog(`[client #${clientIdAndHost}] Handshake complete (remote is open)`); // Forward messages client -> remote