Skip to content

Commit

Permalink
wrong property?
Browse files Browse the repository at this point in the history
  • Loading branch information
dolled-possum committed Jan 5, 2025
1 parent b7ce0b8 commit 26114ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 26114ec

Please sign in to comment.