From 1cef5fc2744d2428f28976c7adb0f476d8bc3bcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Thu, 9 Dec 2021 21:26:48 +0100 Subject: Network: ignore packets sent by ourselves --- src/network.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/network.h') diff --git a/src/network.h b/src/network.h index b1ecf86..a59a1bc 100644 --- a/src/network.h +++ b/src/network.h @@ -147,6 +147,7 @@ struct Server::Priv void doListen(); void doAnnounce(); + bool isSelfAddress(const sockaddr_in & paddr); Peer & getPeer(const sockaddr_in & paddr); void handlePacket(Peer &, const TransportHeader &, ReplyBuilder &); @@ -173,6 +174,7 @@ struct Server::Priv vector> waiting; int sock; + vector localAddresses; vector bcastAddresses; // Start destruction with finalizing services -- cgit v1.2.3