Merge pull request #21462 from overleaf/revert-18828-ac-node-20

Revert "Upgrade Node from `18.20.2` to `20.17.0`"

GitOrigin-RevId: cc12c33b4588caa2959817a113547d20d437d6f4
This commit is contained in:
Andrew Rumble
2024-10-29 14:51:59 +00:00
committed by Copybot
parent 8f56f39ec8
commit 79d80cc266
87 changed files with 109 additions and 113 deletions
@@ -30,11 +30,7 @@ const _originalLookup = dns.lookup
dns.lookup = (hostname, options, callback) => {
if (hostname === 'example.com') {
// If the hostname is our test case, return the ip address for the test server
if (options?.all) {
callback(null, [{ address: '127.0.0.1', family: 4 }])
} else {
callback(null, '127.0.0.1', 4)
}
callback(null, '127.0.0.1', 4)
} else {
// Otherwise, use the default lookup
_originalLookup(hostname, options, callback)