1 parent ca44610 commit 627ffb3Copy full SHA for 627ffb3
1 file changed
https-proxy-agent.js
@@ -25,6 +25,7 @@ module.exports = HttpsProxyAgent;
25
function HttpsProxyAgent (opts) {
26
if (!(this instanceof HttpsProxyAgent)) return new HttpsProxyAgent(opts);
27
if ('string' == typeof opts) opts = url.parse(opts);
28
+ if (!opts) throw new Error('an HTTP(S) proxy server `host` and `port` must be specified!');
29
var proxy = clone(opts, {});
30
Agent.call(this);
31
0 commit comments