* treat transport code 0 the same as un-scoped.

This commit is contained in:
Scott Powell committed 2026-10-08 19:56:45 +11:00
1 parent 2dbd463eda
commit 01f9293be0
1 file changed
+1
+1
View File
@@ -188,6 +188,7 @@ int RegionMap::getTransportKeysFor(const RegionEntry& src, TransportKey dest[],
}
RegionEntry* RegionMap::findMatch(mesh::Packet* packet, uint8_t mask) {
if (packet->transport_codes[0] == 0) return &wildcard;
for (int i = 0; i < num_regions; i++) {
auto region = &regions[i];
if ((region->flags & mask) == 0) { // does region allow this? (per 'mask' param)