Fix compile error

This commit is contained in:
Davide De Rosa 2024-05-08 23:08:08 +02:00
parent 7bebd0c8a0
commit 55d7386450
No known key found for this signature in database
GPG Key ID: A48836171C759F5E
1 changed files with 1 additions and 4 deletions

View File

@ -111,10 +111,7 @@ extension PacketTunnelProvider: WireGuardAdapterDelegate {
self.reasserting = reasserting self.reasserting = reasserting
} }
public func adapterShouldSetNetworkSettings(_ adapter: WireGuardAdapter, settings: Any?, completionHandler: ((Error?) -> Void)?) { public func adapterShouldSetNetworkSettings(_ adapter: WireGuardAdapter, settings: NEPacketTunnelNetworkSettings, completionHandler: (((any Error)?) -> Void)?) {
guard let settings = settings as? NEPacketTunnelNetworkSettings else {
return
}
setTunnelNetworkSettings(settings, completionHandler: completionHandler) setTunnelNetworkSettings(settings, completionHandler: completionHandler)
} }
} }