Update API usage

This commit is contained in:
世界
2023-08-31 23:43:59 +08:00
parent b5a89fddec
commit 174d05c8c5
6 changed files with 57 additions and 20 deletions
+1 -2
View File
@@ -75,8 +75,7 @@ public class CommandClient: ObservableObject {
try client.connect()
commandClient = client
return
} catch {
}
} catch {}
try Task.checkCancellation()
}
} catch {
@@ -167,9 +167,4 @@ public class ExtensionPlatformInterface: NSObject, LibboxPlatformInterfaceProtoc
}
tunnel.reasserting = false
}
public func closeTun() throws {
tunnel.setTunnelNetworkSettings(nil) { _ in
}
}
}