Introduce initial UI for connecting to networks

This commit is contained in:
Conrad Kramer 2024-02-24 09:49:07 -08:00
parent a757ac7be9
commit 453dd2d116
33 changed files with 1458 additions and 321 deletions

View file

@ -6,10 +6,16 @@ import os
class PacketTunnelProvider: NEPacketTunnelProvider {
private let logger = Logger.logger(for: PacketTunnelProvider.self)
override func startTunnel(options: [String: NSObject]? = nil) async throws {
override init() {
do {
libburrow.spawnInProcess(socketPath: try Constants.socketURL.path)
} catch {
logger.error("Failed to spawn: \(error)")
}
}
override func startTunnel(options: [String: NSObject]? = nil) async throws {
do {
let client = try Client()
let command = BurrowRequest(id: 0, command: "ServerConfig")