fix check for proxy_addr/proxy_port