Short-circuit IP address checking