From d1084ecbeb08e0923890b902490229cd037b5e4d Mon Sep 17 00:00:00 2001 From: pandego <7780875+pandego@users.noreply.github.com> Date: Fri, 27 Feb 2026 02:32:31 +0100 Subject: [PATCH] fix(config): accept bluebubbles allowPrivateNetwork setting --- src/config/config.schema-regressions.test.ts | 28 ++++++++++++++++++++ src/config/zod-schema.providers-core.ts | 1 + 2 files changed, 29 insertions(+) diff --git a/src/config/config.schema-regressions.test.ts b/src/config/config.schema-regressions.test.ts index c183b34fa8e..057c8008d29 100644 --- a/src/config/config.schema-regressions.test.ts +++ b/src/config/config.schema-regressions.test.ts @@ -75,6 +75,34 @@ describe("config schema regressions", () => { expect(res.ok).toBe(true); }); + it("accepts channels.bluebubbles.allowPrivateNetwork", () => { + const res = validateConfigObject({ + channels: { + bluebubbles: { + allowPrivateNetwork: true, + }, + }, + }); + + expect(res.ok).toBe(true); + }); + + it("accepts channels.bluebubbles.accounts.*.allowPrivateNetwork", () => { + const res = validateConfigObject({ + channels: { + bluebubbles: { + accounts: { + default: { + allowPrivateNetwork: true, + }, + }, + }, + }, + }); + + expect(res.ok).toBe(true); + }); + it("rejects unsafe iMessage remoteHost", () => { const res = validateConfigObject({ channels: { diff --git a/src/config/zod-schema.providers-core.ts b/src/config/zod-schema.providers-core.ts index 5c69682123e..80272820a3b 100644 --- a/src/config/zod-schema.providers-core.ts +++ b/src/config/zod-schema.providers-core.ts @@ -1277,6 +1277,7 @@ export const BlueBubblesAccountSchemaBase = z mediaMaxMb: z.number().int().positive().optional(), mediaLocalRoots: z.array(z.string()).optional(), sendReadReceipts: z.boolean().optional(), + allowPrivateNetwork: z.boolean().optional(), blockStreaming: z.boolean().optional(), blockStreamingCoalesce: BlockStreamingCoalesceSchema.optional(), groups: z.record(z.string(), BlueBubblesGroupConfigSchema.optional()).optional(),