Message Filter: Fix filtering on NetID or NetType if message doesn't have one

add-device-sharing
Paul Hollinsky 2022-04-07 13:05:34 -04:00
parent c398afc4e3
commit a2cfc50b7c
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,8 @@ public:
return false;
if(!matchNetID(frame.network.getNetID()))
return false;
} else if (netid != Network::NetID::Any || networkType != Network::Type::Any) {
return false; // Filtering on a NetID or Type, but this message doesn't have one
}
return true;
}