ids.cgi: Fix upstream proxy validation