pex: remove connected check in pex_msg_send
authorFelix Fietkau <nbd@nbd.name>
Tue, 23 Aug 2022 21:06:09 +0000 (23:06 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 23 Aug 2022 21:20:25 +0000 (23:20 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
pex.c

diff --git a/pex.c b/pex.c
index ab9eb2ba7c2dc26cf0eeadd420195c822ed76714..1ec140dc61175c19df36e94801c48abf84bb5ec7 100644 (file)
--- a/pex.c
+++ b/pex.c
@@ -65,7 +65,7 @@ static void pex_msg_send(struct network *net, struct network_peer *peer)
 {
        struct sockaddr_in6 sin6 = {};
 
-       if (!peer || peer == &net->net_config.local_host->peer || !peer->state.connected)
+       if (!peer || peer == &net->net_config.local_host->peer)
                return;
 
        pex_get_peer_addr(&sin6, net, peer);