fix: only expose external hosts

License: MIT
Signed-off-by: Jacob Heun <jacobheun@gmail.com>
This commit is contained in:
Jacob Heun 2018-11-09 23:50:24 +01:00
parent 299b795f8a
commit 5f8571efb0
No known key found for this signature in database
GPG Key ID: CA5A94C15809879F

View File

@ -122,7 +122,7 @@ module.exports = (handler) => {
netInterfaces[niKey].forEach((ni) => {
if (ni.family === address.family) {
const maOpts = listeningAddr.toOptions()
if (maOpts.host === '::') {
if (maOpts.host === '::' && !ni.internal) {
maOpts.family = address.family
maOpts.address = ni.address
multiaddrs.push(