mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-01 10:21:59 +00:00
* treat transport code 0 the same as un-scoped.
This commit is contained in:
@@ -188,6 +188,7 @@ int RegionMap::getTransportKeysFor(const RegionEntry& src, TransportKey dest[],
|
|||||||
}
|
}
|
||||||
|
|
||||||
RegionEntry* RegionMap::findMatch(mesh::Packet* packet, uint8_t mask) {
|
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++) {
|
for (int i = 0; i < num_regions; i++) {
|
||||||
auto region = ®ions[i];
|
auto region = ®ions[i];
|
||||||
if ((region->flags & mask) == 0) { // does region allow this? (per 'mask' param)
|
if ((region->flags & mask) == 0) { // does region allow this? (per 'mask' param)
|
||||||
|
|||||||
Reference in New Issue
Block a user