Commit bfa5cb20 authored by Phoebe Buckheister's avatar Phoebe Buckheister 🐍

common: allow X/0 as "allow all" in NetFilter

closes #417

(cherry picked from commit 34442a522509cd7930316ad8496adb785c93c3ed)
parent f26123dc
......@@ -111,6 +111,9 @@ class NetFilter
for(size_t i = 0; i < this->filterArrayLen; i++)
if (filterArray[i].shiftBitsNum == 32)
return true;
// note: stored addresses are in host byte order to enable correct shift operator usage
const in_addr_t ipHostOrderShifted =
ipHostOrder >> ( (this->filterArray)[i].shiftBitsNum);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment