mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 03:47:26 +00:00
fix(discovery): add missing domain to wideArea Zod config schema (#35615)
Merged via squash.
Prepared head SHA: d81d3321b6
Co-authored-by: ingyukoh <6015960+ingyukoh@users.noreply.github.com>
Co-authored-by: altaywtf <9790196+altaywtf@users.noreply.github.com>
Reviewed-by: @altaywtf
This commit is contained in:
@@ -211,4 +211,17 @@ describe("config schema regressions", () => {
|
||||
|
||||
expect(res.ok).toBe(true);
|
||||
});
|
||||
|
||||
it("accepts discovery.wideArea.domain for unicast DNS-SD", () => {
|
||||
const res = validateConfigObject({
|
||||
discovery: {
|
||||
wideArea: {
|
||||
enabled: true,
|
||||
domain: "openclaw.internal",
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
expect(res.ok).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -296,6 +296,7 @@ const TARGET_KEYS = [
|
||||
"web.reconnect.jitter",
|
||||
"web.reconnect.maxAttempts",
|
||||
"discovery",
|
||||
"discovery.wideArea.domain",
|
||||
"discovery.wideArea.enabled",
|
||||
"discovery.mdns",
|
||||
"discovery.mdns.mode",
|
||||
|
||||
@@ -292,6 +292,8 @@ export const FIELD_HELP: Record<string, string> = {
|
||||
"Wide-area discovery configuration group for exposing discovery signals beyond local-link scopes. Enable only in deployments that intentionally aggregate gateway presence across sites.",
|
||||
"discovery.wideArea.enabled":
|
||||
"Enables wide-area discovery signaling when your environment needs non-local gateway discovery. Keep disabled unless cross-network discovery is operationally required.",
|
||||
"discovery.wideArea.domain":
|
||||
"Optional unicast DNS-SD domain for wide-area discovery, such as openclaw.internal. Use this when you intentionally publish gateway discovery beyond local mDNS scopes.",
|
||||
"discovery.mdns":
|
||||
"mDNS discovery configuration group for local network advertisement and discovery behavior tuning. Keep minimal mode for routine LAN discovery unless extra metadata is required.",
|
||||
tools:
|
||||
|
||||
@@ -654,6 +654,7 @@ export const FIELD_LABELS: Record<string, string> = {
|
||||
discovery: "Discovery",
|
||||
"discovery.wideArea": "Wide-area Discovery",
|
||||
"discovery.wideArea.enabled": "Wide-area Discovery Enabled",
|
||||
"discovery.wideArea.domain": "Wide-area Discovery Domain",
|
||||
"discovery.mdns": "mDNS Discovery",
|
||||
canvasHost: "Canvas Host",
|
||||
"canvasHost.enabled": "Canvas Host Enabled",
|
||||
|
||||
@@ -596,6 +596,7 @@ export const OpenClawSchema = z
|
||||
wideArea: z
|
||||
.object({
|
||||
enabled: z.boolean().optional(),
|
||||
domain: z.string().optional(),
|
||||
})
|
||||
.strict()
|
||||
.optional(),
|
||||
|
||||
Reference in New Issue
Block a user