Skip to content

Commit 3142108

Browse files
committed
Fixed mDns conflict
1 parent 83d3863 commit 3142108

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/xyz/gianlu/librespot/core/ZeroconfServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ private ZeroconfServer(Session.Inner inner, Configuration conf) throws IOExcepti
110110
instances = new JmDNS[bound.length];
111111
for (int i = 0; i < instances.length; i++) {
112112
instances[i] = JmDNS.create(bound[i], bound[i].getHostName());
113-
ServiceInfo serviceInfo = ServiceInfo.create("_spotify-connect._tcp.local.", "librespot-java", port, 0, 0, txt);
113+
ServiceInfo serviceInfo = ServiceInfo.create("_spotify-connect._tcp.local.", "librespot-java-" + i, port, 0, 0, txt);
114114
instances[i].registerService(serviceInfo);
115115
}
116116

0 commit comments

Comments
 (0)