Skip to content

Commit

Permalink
remove ip address logging
Browse files Browse the repository at this point in the history
Signed-off-by: The_Baum <the.baum12345@gmail.com>
  • Loading branch information
TheBaum123 authored May 21, 2023
1 parent 89be36e commit a51b7c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ wss.on("connection", ws => {
} else {
rooms[message.login.room] = [ws]
}
if(logging) console.log(`registered User "${message.login.userName}" in room "${message.login.room}" with the ip ${ws._socket.remoteAddress}`)
if(logging) console.log(`registered User "${message.login.userName}" in room "${message.login.room}"`)
rooms[message.login.room].forEach(user => {
if(user.OPEN && user != ws)
user.send(JSON.stringify({
Expand Down Expand Up @@ -240,4 +240,4 @@ process.on("SIGINT", async function() {
await mongoClient.close()
if(logging) console.log("conection to mongodb closed")
process.exit()
})
})

0 comments on commit a51b7c3

Please sign in to comment.