fix: mdns discover hostname (#9039)
This commit is contained in:
parent
c4e4f2a058
commit
7030f49a74
3 changed files with 5 additions and 3 deletions
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue