mirror of
https://github.com/fluencelabs/js-libp2p-tcp
synced 2025-04-25 17:52:29 +00:00
fix: only expose external hosts
License: MIT Signed-off-by: Jacob Heun <jacobheun@gmail.com>
This commit is contained in:
parent
299b795f8a
commit
5f8571efb0
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user