From 13b7a9986011c24bd878c7d0d16fe931632f2774 Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Mon, 8 Apr 2024 19:45:34 -0600 Subject: [PATCH] Update logging --- server.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server.go b/server.go index ddade69..5a6ad5a 100644 --- a/server.go +++ b/server.go @@ -260,13 +260,14 @@ func(server *Server) listen_udp() { continue } - client_addr, err := ParseSessionConnect(buf[COMMAND_LENGTH+ID_LENGTH:read], session.secret) + _, err := ParseSessionConnect(buf[COMMAND_LENGTH+ID_LENGTH:read], session.secret) if err != nil { server.Log("Error parsing session connect: %s", err) continue } - session.remote = client_addr + // TODO: fix, was client_addr but the client doesnt know it's nat assignment + session.remote = from session.LastSeen = time.Now() // TODO: Make a better server hello