log on hole punch
This commit is contained in:
parent
7d954e22f6
commit
f36b46bfdc
|
@ -247,6 +247,9 @@ impl Handler<Packet> for PlayerActor {
|
||||||
|
|
||||||
if packet.user_id == self.id {
|
if packet.user_id == self.id {
|
||||||
match packet.data {
|
match packet.data {
|
||||||
|
PacketData::HolePunch(_) => {
|
||||||
|
info!("got hole punch!");
|
||||||
|
}
|
||||||
PacketData::UdpInit(UdpInit { port }) => {
|
PacketData::UdpInit(UdpInit { port }) => {
|
||||||
let _ = self.write_sender.send(WriteMessage::SetUdp(port));
|
let _ = self.write_sender.send(WriteMessage::SetUdp(port));
|
||||||
let _ = self.write_sender.send(WriteMessage::Data(Packet {
|
let _ = self.write_sender.send(WriteMessage::Data(Packet {
|
||||||
|
|
Loading…
Reference in a new issue