only invoke `url.parse()` when the proxy is a string