diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2018-08-31 22:41:23 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2018-08-31 22:41:23 +0800 |
commit | afb4b333d6be6b184b2e89bbd4ce73b934d162d2 (patch) | |
tree | ba5d014ada56f20477eea04a9b6e30a3dd52562a /www | |
parent | 64b0a49eca8c8b9858cb3fe4f912f932d0c8760b (diff) | |
download | freebsd-ports-gnome-afb4b333d6be6b184b2e89bbd4ce73b934d162d2.tar.gz freebsd-ports-gnome-afb4b333d6be6b184b2e89bbd4ce73b934d162d2.tar.zst freebsd-ports-gnome-afb4b333d6be6b184b2e89bbd4ce73b934d162d2.zip |
Update extra-patch-bug-178881
Diffstat (limited to 'www')
-rw-r--r-- | www/npm/files/extra-patch-bug-178881 | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/www/npm/files/extra-patch-bug-178881 b/www/npm/files/extra-patch-bug-178881 index c6bbfde396b9..f0e0d5c8f6e8 100644 --- a/www/npm/files/extra-patch-bug-178881 +++ b/www/npm/files/extra-patch-bug-178881 @@ -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 ] } |