|
|
@ -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
|
|
|
|