Skip to content

Commit

Permalink
diagonalostics
Browse files Browse the repository at this point in the history
  • Loading branch information
dolled-possum committed Jan 5, 2025
1 parent ec9b4c0 commit 5f07a7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ server.on('upgrade', (req, socket, head) => {
// Handle new client connections on the wss
wss.on('connection', (clientSocket, req, remoteSocket) => {
const clientId = ++connectionCounter;
console.log(req);
const clientIdAndHost = `${clientId} ${req.hostname}`
//console.log(req);
const clientIdAndHost = `${clientId} ${req.headers.host}`
tsLog(`[client #${clientIdAndHost}] Handshake complete (remote is open)`);

// Forward messages client -> remote
Expand Down

0 comments on commit 5f07a7d

Please sign in to comment.