Add NoHopPorts

This commit is contained in:
Jonathan Bennett
2026-01-11 17:33:23 -06:00
parent a1d6978626
commit 8b8c1881a8
3 changed files with 13 additions and 1 deletions

View File

@@ -757,6 +757,13 @@ void Router::handleReceived(meshtastic_MeshPacket *p, RxSource src)
skipHandle = true;
}
}
for (const auto &port : portduino_config.nohop_ports) {
if (port == p->decoded.portnum) {
p->hop_start -= p->hop_limit;
p->hop_limit = 0;
break;
}
}
#endif
} else {
printPacket("packet decoding failed or skipped (no PSK?)", p);