fix(dns): fixed cacheable-lookup integration; (#5836)

This commit is contained in:
Dmitriy Mozgovoy 2023-08-26 18:51:09 +03:00 committed by GitHub
parent 8fda2766b1
commit b3e327dcc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -391,11 +391,13 @@ export default isHttpAdapterSupported && function httpAdapter(config) {
auth,
protocol,
family,
lookup,
beforeRedirect: dispatchBeforeRedirect,
beforeRedirects: {}
};
// cacheable-lookup integration hotfix
!utils.isUndefined(lookup) && (options.lookup = lookup);
if (config.socketPath) {
options.socketPath = config.socketPath;
} else {