Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lumpov opened this issue Feb 27, 2024 · 0 comments
Open

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

lumpov opened this issue Feb 27, 2024 · 0 comments

Comments

@lumpov
Copy link

lumpov commented Feb 27, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant