Skip to content

Commit 0e6d438

Browse files
committed
Fixed #32
1 parent 038f800 commit 0e6d438

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public class ZeroconfAuthenticator implements Closeable {
7373
int port = session.random.nextInt((MAX_PORT - MIN_PORT) + 1) + MIN_PORT;
7474
new Thread(this.runner = new HttpRunner(port)).start();
7575

76-
ServiceInstance service = new ServiceInstance(new ServiceName("librespot._spotify-connect._tcp.local."), 0, 0, port, Name.fromString("local."), new InetAddress[]{InetAddress.getLocalHost()}, "VERSION=1.0", "CPath=/");
76+
ServiceInstance service = new ServiceInstance(new ServiceName("librespot._spotify-connect._tcp.local."), 0, 0, port, Name.fromString("local."), InetAddress.getAllByName("localhost"), "VERSION=1.0", "CPath=/");
7777
spotifyConnectService = mDnsService.register(service);
7878
if (spotifyConnectService == null)
7979
throw new IOException("Failed registering SpotifyConnect service!");

0 commit comments

Comments
 (0)