mirror of
https://github.com/cirruslabs/tart.git
synced 2026-10-17 19:36:10 +02:00
* Fixed Swift Warning Plus updated all the dependencies and Swift Tools. Fixes #785 * Fixed race condition
24 lines
511 B
Swift
24 lines
511 B
Swift
import Foundation
|
|
import Semaphore
|
|
import Virtualization
|
|
|
|
class NetworkBridged: Network {
|
|
let interfaces: [VZBridgedNetworkInterface]
|
|
|
|
init(interfaces: [VZBridgedNetworkInterface]) {
|
|
self.interfaces = interfaces
|
|
}
|
|
|
|
func attachments() -> [VZNetworkDeviceAttachment] {
|
|
interfaces.map { VZBridgedNetworkDeviceAttachment(interface: $0) }
|
|
}
|
|
|
|
func run(_ sema: AsyncSemaphore) throws {
|
|
// no-op, only used for Softnet
|
|
}
|
|
|
|
func stop() async throws {
|
|
// no-op, only used for Softnet
|
|
}
|
|
}
|