From c5ea58c5adb0769aed4047f123b20ec704198bc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Papp?= Date: Wed, 3 Jun 2026 14:26:24 +0200 Subject: [PATCH] ios: enable sync response persistence for debug bundle Turn on sync response persistence before starting the engine so DebugBundle can include the network map. On iOS the store is disk-backed (see syncstore) to keep the map out of the constrained process memory. --- client/ios/NetBirdSDK/client.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/ios/NetBirdSDK/client.go b/client/ios/NetBirdSDK/client.go index 2de0693d8..271cf1a89 100644 --- a/client/ios/NetBirdSDK/client.go +++ b/client/ios/NetBirdSDK/client.go @@ -170,6 +170,10 @@ func (c *Client) Run(fd int32, interfaceName string, envList *EnvList) error { connectClient := internal.NewConnectClient(ctx, cfg, c.recorder) c.setState(cfg, connectClient) + // Persist the latest sync response so DebugBundle can include the network + // map. On iOS this is backed by disk to keep it out of the constrained + // process memory (see the syncstore package). + connectClient.SetSyncResponsePersistence(true) return connectClient.RunOniOS(fd, c.networkChangeListener, c.dnsManager, c.stateFile, c.cacheDir) }