Skip to content

Commit 2820b74

Browse files
committed
Working Zeroconf implementation
1 parent 0663079 commit 2820b74

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<dependency>
6868
<groupId>xyz.gianlu.zeroconf</groupId>
6969
<artifactId>zeroconf</artifactId>
70-
<version>1.1.0</version>
70+
<version>1.1.1</version>
7171
</dependency>
7272

7373
<!-- H2 (cache) -->

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,7 @@ private ZeroconfServer(Session.Inner inner, Configuration conf) throws IOExcepti
133133
}
134134

135135
zeroconf = new Zeroconf();
136-
zeroconf.addSendListener(packet -> System.out.println("SEND: " + packet));
137-
zeroconf.addReceiveListener(packet -> System.out.println("RECV: " + packet));
136+
zeroconf.setUseIpv4(true).setUseIpv6(false);
138137
zeroconf.addNetworkInterfaces(nics);
139138

140139
Map<String, String> txt = new HashMap<>();

0 commit comments

Comments
 (0)