From bfa37cf1e6d99be732e4247f8555eb3435da7029 Mon Sep 17 00:00:00 2001 From: Snootic Date: Wed, 1 May 2024 02:09:04 -0300 Subject: [PATCH] feat: add a hostname to the mdns service --- src/main/java/com/pedro/sphynx/domain/dnsService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/pedro/sphynx/domain/dnsService.java b/src/main/java/com/pedro/sphynx/domain/dnsService.java index 283e097..d0ad1c3 100644 --- a/src/main/java/com/pedro/sphynx/domain/dnsService.java +++ b/src/main/java/com/pedro/sphynx/domain/dnsService.java @@ -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");