Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ondras committed Feb 28, 2023
1 parent 6650035 commit 07df8c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Player from "./player.ts";


async function handleReq(req: Request, conn: ConnInfo) {
console.log("new http request", conn.remoteAddr, req.url);
console.log("new http request", req.headers.get("x-real-ip") || conn.remoteAddr.hostname);
try {
const { socket, response } = Deno.upgradeWebSocket(req);
console.log("accepted websocket upgrade")
Expand Down

0 comments on commit 07df8c0

Please sign in to comment.