log on hole punch

This commit is contained in:
Aubrey 2024-12-23 04:59:54 -06:00
parent 7d954e22f6
commit f36b46bfdc
No known key found for this signature in database

View file

@ -247,6 +247,9 @@ impl Handler<Packet> for PlayerActor {
if packet.user_id == self.id {
match packet.data {
PacketData::HolePunch(_) => {
info!("got hole punch!");
}
PacketData::UdpInit(UdpInit { port }) => {
let _ = self.write_sender.send(WriteMessage::SetUdp(port));
let _ = self.write_sender.send(WriteMessage::Data(Packet {