2022-07-31 15:40:20 +00:00
committed by Git OBS Bridge
parent ff0784f287
commit 78a89a2272
3 changed files with 25 additions and 0 deletions

15
dns.patch Normal file
View File

@@ -0,0 +1,15 @@
Index: node-v18.6.0/lib/net.js
===================================================================
--- node-v18.6.0.orig/lib/net.js
+++ node-v18.6.0/lib/net.js
@@ -1118,8 +1118,8 @@ function lookupAndConnect(self, options)
};
if (!isWindows &&
- dnsopts.family !== 4 &&
- dnsopts.family !== 6 &&
+ dnsopts.family !== 'IPv4' &&
+ dnsopts.family !== 'IPv6' &&
dnsopts.hints === 0) {
dnsopts.hints = dns.ADDRCONFIG;
}