Add support for IP ranges in valid_ips