Use correct boolen operator on IPv4 addresses