Do not prefer ipv4 dns results

Summary: This is the default from Node 17 onwards and should unblock problems we're seeing on some people's machines.

Reviewed By: lblasa

Differential Revision: D49415859

fbshipit-source-id: c15ab82e69db4916838228324a9739c95f3562f3
This commit is contained in:
Pascal Hartig
2023-09-22 06:25:35 -07:00
committed by Facebook GitHub Bot
parent 412b05ad8d
commit fcd21111a0

View File

@@ -30,3 +30,9 @@ export {
} from './app-connectivity/certificate-exchange/certificate-utils';
export {sessionId} from './sessionId';
import dns from 'dns';
// The default on node16 is to prefer ipv4 results which causes issues
// in some setups.
// @ts-ignore: Not in our node typings yet
dns.setDefaultResultOrder('verbatim');