mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Update extra-patch-bug-178881
This commit is contained in:
parent
a23940a71f
commit
6cd28efb42
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=478562
1 changed files with 4 additions and 11 deletions
|
@ -1,6 +1,6 @@
|
|||
--- lib/node_modules/npm/lib/config/defaults.js.orig 1985-10-26 08:15:00 UTC
|
||||
+++ lib/node_modules/npm/lib/config/defaults.js
|
||||
@@ -372,26 +372,7 @@ exports.types = {
|
||||
@@ -378,19 +378,7 @@ exports.types = {
|
||||
}
|
||||
|
||||
function getLocalAddresses () {
|
||||
|
@ -14,16 +14,9 @@
|
|||
- interfaces = {}
|
||||
- }
|
||||
-
|
||||
- return Object.keys(interfaces).map(function (nic) {
|
||||
- return interfaces[nic].filter(function (addr) {
|
||||
- return addr.family === 'IPv4'
|
||||
- })
|
||||
- .map(function (addr) {
|
||||
- return addr.address
|
||||
- })
|
||||
- }).reduce(function (curr, next) {
|
||||
- return curr.concat(next)
|
||||
- }, []).concat(undefined)
|
||||
- return Object.keys(interfaces).map(
|
||||
- nic => interfaces[nic].map(({address}) => address)
|
||||
- ).reduce((curr, next) => curr.concat(next), []).concat(undefined)
|
||||
+ return [ '127.0.0.1', undefined ]
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue