refactor(apple): Expose hasUnappliedChanges (#4211)

Exposing the var for now. This is all removed and much simplified in
#4133
This commit is contained in:
Jamil
2024-03-19 13:09:30 -07:00
committed by GitHub
parent 0807be212b
commit 3ac0739323
2 changed files with 2 additions and 1 deletions

View File

@@ -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)
}

View File

@@ -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]