I have a function within a flow that checks if a given IP address is within the Private ranges. The flow breaks down the IPv4 address into four Octets, and then uses a condition expression to tell whether it is a public or private IP. The expression can be seen below:
For some reason when I've run this against a 10. IP address the OR marks itself as False, despite matching with the 10. section.
Is anyone able to advise why this is happening? In my mind the logic I've put here is: ((Octet 1 = 10) OR (Octet 1 = 172 AND Octet 2 > 16 AND Octet 2 < 31) OR (Octet 1 = 192 AND Octet 2 = 168)). Am I mistaken?