fix(core): mdns fails if service already registered

pull/6529/head
Adam 2025-12-31 07:33:49 -06:00
parent 3650fefe2d
commit 50ef866a02
No known key found for this signature in database
GPG Key ID: 9CB48779AF150E75
1 changed files with 1 additions and 1 deletions

View File

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