Merge d1084ecbeb08e0923890b902490229cd037b5e4d into 598f1826d8b2bc969aace2c6459824737667218c

This commit is contained in:
Miguel Miranda Dias 2026-03-21 04:21:41 +01:00 committed by GitHub
commit ad288d744b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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

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