forked from pool/nodejs18
- dns.patch: fix regression
https://github.com/nodejs/node/issues/44003 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs18?expand=0&rev=4
This commit is contained in:
15
dns.patch
Normal file
15
dns.patch
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user