Fix compile error
This commit is contained in:
parent
7bebd0c8a0
commit
55d7386450
|
@ -111,10 +111,7 @@ extension PacketTunnelProvider: WireGuardAdapterDelegate {
|
|||
self.reasserting = reasserting
|
||||
}
|
||||
|
||||
public func adapterShouldSetNetworkSettings(_ adapter: WireGuardAdapter, settings: Any?, completionHandler: ((Error?) -> Void)?) {
|
||||
guard let settings = settings as? NEPacketTunnelNetworkSettings else {
|
||||
return
|
||||
}
|
||||
public func adapterShouldSetNetworkSettings(_ adapter: WireGuardAdapter, settings: NEPacketTunnelNetworkSettings, completionHandler: (((any Error)?) -> Void)?) {
|
||||
setTunnelNetworkSettings(settings, completionHandler: completionHandler)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue