mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-27 18:01:46 +00:00
fix(gateway): fail closed on unresolved discovery endpoints
This commit is contained in:
@@ -81,7 +81,8 @@ vi.mock("../daemon/program-args.js", () => ({
|
||||
}),
|
||||
}));
|
||||
|
||||
vi.mock("../infra/bonjour-discovery.js", () => ({
|
||||
vi.mock("../infra/bonjour-discovery.js", async (importOriginal) => ({
|
||||
...(await importOriginal<typeof import("../infra/bonjour-discovery.js")>()),
|
||||
discoverGatewayBeacons: (opts: unknown) => discoverGatewayBeacons(opts),
|
||||
}));
|
||||
|
||||
@@ -147,6 +148,7 @@ describe("gateway-cli coverage", () => {
|
||||
displayName: "Studio",
|
||||
domain: "openclaw.internal.",
|
||||
host: "studio.openclaw.internal",
|
||||
port: 18789,
|
||||
lanHost: "studio.local",
|
||||
tailnetDns: "studio.tailnet.ts.net",
|
||||
gatewayPort: 18789,
|
||||
|
||||
Reference in New Issue
Block a user