Update logging

live
noah metz 2024-04-08 19:45:34 -06:00
parent 751a857b90
commit 13b7a99860
1 changed files with 3 additions and 2 deletions

@ -260,13 +260,14 @@ func(server *Server) listen_udp() {
continue 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 { if err != nil {
server.Log("Error parsing session connect: %s", err) server.Log("Error parsing session connect: %s", err)
continue 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() session.LastSeen = time.Now()
// TODO: Make a better server hello // TODO: Make a better server hello