From fbc94e0340f7efd5cd472246c4fb7be8ba38d12e Mon Sep 17 00:00:00 2001 From: David Dias Date: Wed, 18 Jan 2017 15:34:21 +0000 Subject: [PATCH] fix: mdns default service tag --- package.json | 2 +- src/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2225145..9ce4025 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ }, "dependencies": { "libp2p": "^0.3.1", - "libp2p-mdns": "^0.5.0", + "libp2p-mdns": "^0.5.1", "libp2p-secio": "^0.6.4", "libp2p-spdy": "^0.10.1", "libp2p-swarm": "^0.26.7", diff --git a/src/index.js b/src/index.js index 4ab4ef4..3300cc5 100644 --- a/src/index.js +++ b/src/index.js @@ -34,7 +34,7 @@ class Node extends libp2p { } if (options.mdns) { - modules.discovery.push(new MulticastDNS(peerInfo)) + modules.discovery.push(new MulticastDNS(peerInfo, 'ipfs.local')) } super(modules, peerInfo, peerBook, options)