mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
refactor(apple): Expose hasUnappliedChanges (#4211)
Exposing the var for now. This is all removed and much simplified in #4133
This commit is contained in:
@@ -460,6 +460,7 @@ extension Adapter: CallbackHandlerDelegate {
|
||||
networkSettings.routes6 = try! JSONDecoder().decode(
|
||||
[NetworkSettings.Cidr].self, from: routeList6.data(using: .utf8)!
|
||||
).compactMap { $0.asNEIPv6Route }
|
||||
networkSettings.hasUnappliedChanges = true
|
||||
|
||||
networkSettings.apply(on: packetTunnelProvider, logger: self.logger, completionHandler: nil)
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ class NetworkSettings {
|
||||
private(set) var matchDomains: [String] = [""]
|
||||
|
||||
// To keep track of modifications
|
||||
private(set) var hasUnappliedChanges: Bool
|
||||
public var hasUnappliedChanges: Bool
|
||||
|
||||
init(
|
||||
tunnelAddressIPv4: String, tunnelAddressIPv6: String, dnsAddresses: [String]
|
||||
|
||||
Reference in New Issue
Block a user