Skip to content
This repository was archived by the owner on Apr 29, 2020. It is now read-only.

Commit 498289b

Browse files
committed
fix: mdns default service tag
1 parent f8b36c8 commit 498289b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
},
4343
"dependencies": {
4444
"libp2p": "^0.3.1",
45-
"libp2p-mdns": "^0.5.0",
45+
"libp2p-mdns": "^0.5.1",
4646
"libp2p-secio": "^0.6.4",
4747
"libp2p-spdy": "^0.10.1",
4848
"libp2p-swarm": "^0.26.7",

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Node extends libp2p {
3434
}
3535

3636
if (options.mdns) {
37-
modules.discovery.push(new MulticastDNS(peerInfo))
37+
modules.discovery.push(new MulticastDNS(peerInfo, 'ipfs.local'))
3838
}
3939

4040
super(modules, peerInfo, peerBook, options)

0 commit comments

Comments
 (0)