Skip to content

Commit

Permalink
Fixed #32
Browse files Browse the repository at this point in the history
  • Loading branch information
devgianlu committed Dec 28, 2018
1 parent 038f800 commit 0e6d438
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class ZeroconfAuthenticator implements Closeable {
int port = session.random.nextInt((MAX_PORT - MIN_PORT) + 1) + MIN_PORT;
new Thread(this.runner = new HttpRunner(port)).start();

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=/");
ServiceInstance service = new ServiceInstance(new ServiceName("librespot._spotify-connect._tcp.local."), 0, 0, port, Name.fromString("local."), InetAddress.getAllByName("localhost"), "VERSION=1.0", "CPath=/");
spotifyConnectService = mDnsService.register(service);
if (spotifyConnectService == null)
throw new IOException("Failed registering SpotifyConnect service!");
Expand Down

0 comments on commit 0e6d438

Please sign in to comment.