fix(config): accept bluebubbles allowPrivateNetwork setting

This commit is contained in:
pandego 2026-02-27 02:32:31 +01:00
parent 35e40f1139
commit d1084ecbeb
2 changed files with 29 additions and 0 deletions

View File

@ -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: {

View File

@ -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(),