Fix compile error
This commit is contained in:
parent
7bebd0c8a0
commit
55d7386450
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue