mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-16 14:57:41 +00:00
Add NoHopPorts
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user