hpagent icon indicating copy to clipboard operation
hpagent copied to clipboard

Can't work got w/ proxy & custom DNS resolving

Open lumpov opened this issue 2 years ago • 0 comments

const gotRequestOptions = {
	dnsLookupIpVersion: 4,
	dnsLookup: async function lookup(hostname, options, callback) {
		console.log('lookup', { hostname, options, callback });
	},
	agent: {
	 	http: new HttpProxyAgent(proxyParams),
	 	https: new HttpsProxyAgent(proxyParams),
	},
};

When used agent as proxy together with dnsLookup got doesn't call options.dnsLookup function. but in hpagent I cannot find any DNS possibilities to customisation.

lumpov avatar Feb 27 '24 15:02 lumpov