Update API usage

This commit is contained in:
世界 committed 2023-08-31 23:43:59 +08:00
1 parent b5a89fddec
commit 174d05c8c5
6 files changed
+57 -20

No files matched your search

+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
}
}
}