mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
Under some conditions the call to SCDynamicStoreCreate can fail, presumably due to some kind of allocation failure. Once it succeeds, however, we can continue using the dynamic store for the lifetime of the Adapter instance. So we memoize the result of this call so as not to allocate each time we need it. See https://developer.apple.com/documentation/systemconfiguration/1437828-scdynamicstorecreate