Correct redirect exception IP check