Browse Source

Filter out ZeroTier packets that do not come from an expected source

pull/4121/head
staphen 4 years ago committed by Anders Jenbo
parent
commit
e877a8ff0a
  1. 3
      Source/dvlnet/base_protocol.h

3
Source/dvlnet/base_protocol.h

@ -288,6 +288,9 @@ void base_protocol<P>::recv_ingame(packet &pkt, endpoint sender)
// normal packets
LogDebug("Invalid packet: packet source ({}) >= MAX_PLRS", pkt.Source());
return;
} else if (sender != peers[pkt.Source()]) {
LogDebug("Invalid packet: packet source ({}) received from unrecognized endpoint", pkt.Source());
return;
}
connected_table[pkt.Source()] = true;
peers[pkt.Source()] = sender;

Loading…
Cancel
Save