* don't respond to DISCOVER requests if node has adverts turned off. (isHiddenNode())

This commit is contained in:
Scott Powell
2026-10-04 15:02:00 +11:00
parent fad0ffb7f1
commit f19733e478
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -790,6 +790,7 @@ void MyMesh::onControlDataRecv(mesh::Packet* packet) {
uint8_t type = packet->payload[0] & 0xF0; // just test upper 4 bits
if (type == CTL_TYPE_NODE_DISCOVER_REQ && packet->payload_len >= 6
&& !_prefs.disable_fwd && discover_limiter.allow(rtc_clock.getCurrentTime())
&& !isHiddenNode() // this node wishes to NOT be discoverable
) {
int i = 1;
uint8_t filter = packet->payload[i++];