Skip to content

Commit

Permalink
feat: add a hostname to the mdns service
Browse files Browse the repository at this point in the history
  • Loading branch information
Snootic committed May 1, 2024
1 parent e4f8233 commit bfa37cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/pedro/sphynx/domain/dnsService.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void registerService() {
}

// create the mDNS service with the desired ipv4 chosen before
jmdns = JmDNS.create(ipAddress);
jmdns = JmDNS.create(ipAddress, "sphynx-api");

// set service parameters (http._tcp, name, port and description)
ServiceInfo serviceInfo = ServiceInfo.create(serviceType, nomeServico, 8080, "Sphynx API");
Expand Down

0 comments on commit bfa37cf

Please sign in to comment.