Ignore invalid community when not received from supernode

The packet may be received from a multicast registration from a local peer.

Fixes #107
This commit is contained in:
emanuele-f 2019-05-22 22:40:42 +02:00
parent 381c795af5
commit 59011308b2

View File

@ -1455,8 +1455,10 @@ static void readFromIPSocket(n2n_edge_t * eee, int in_sock) {
traceEvent(TRACE_WARNING, "Unable to handle packet type %d: ignored", (signed int)msg_type);
return;
} /* switch(msg_type) */
} else /* if (community match) */
traceEvent(TRACE_WARNING, "Received packet with invalid community");
} else if(from_supernode) /* if (community match) */
traceEvent(TRACE_WARNING, "Received packet with unknown community");
else
traceEvent(TRACE_INFO, "Ignoring packet with unknown community");
}
/* ************************************** */