Issue #2237167 by wickwood - Improve authorized IPs detection in the protected vhosts logic.