mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-25 07:15:19 +00:00
Reapply "feat(core): optional mdns service (#6192)"
This reverts commit 505068d5a6.
This commit is contained in:
@@ -30,7 +30,7 @@ process.on("uncaughtException", (e) => {
|
||||
|
||||
let server: Bun.Server<BunWebSocketData>
|
||||
export const rpc = {
|
||||
async server(input: { port: number; hostname: string }) {
|
||||
async server(input: { port: number; hostname: string; mdns?: boolean }) {
|
||||
if (server) await server.stop(true)
|
||||
try {
|
||||
server = Server.listen(input)
|
||||
|
||||
Reference in New Issue
Block a user