fix: mdns discover hostname (#9039)

This commit is contained in:
Javier Aceña 2026-01-17 12:47:19 +01:00 committed by GitHub
commit 7030f49a74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

View file

@ -562,7 +562,7 @@ export namespace Server {
opts.hostname !== "localhost" &&
opts.hostname !== "::1"
if (shouldPublishMDNS) {
MDNS.publish(server.port!, `opencode-${server.port!}`)
MDNS.publish(server.port!)
} else if (opts.mdns) {
log.warn("mDNS enabled but hostname is loopback; skipping mDNS publish")
}