Skip to content

Commit e9891b3

Browse files
Allow macOS 15 to list and delete networks (apple#1464)
- A recent change moved the list and delete network XPC calls within an availability check, making them only available on macOS 26. However, there are some code flows that rely on being able to call `list` on the NetworksService, including anything that uses `networkClient.builtin`. - `container` does not officially support macOS 15 and as a result we do not have GitHub action runners for validation on macOS 15. That said, we try to avoid breaking compatibility on macOS 15 as much as possible. Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
1 parent 651811c commit e9891b3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Sources/APIServer/APIServer+Start.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,12 +324,12 @@ extension APIServer {
324324

325325
let harness = NetworksHarness(service: service, log: log)
326326

327-
// network creation/deletion/list is not supported pre-macOS 26 (refer to AllocationOnlyVmnetNetwork)
327+
// network creation is not supported pre-macOS 26 (refer to AllocationOnlyVmnetNetwork)
328328
if #available(macOS 26, *) {
329329
routes[XPCRoute.networkCreate] = harness.create
330-
routes[XPCRoute.networkDelete] = harness.delete
331-
routes[XPCRoute.networkList] = harness.list
332330
}
331+
routes[XPCRoute.networkList] = harness.list
332+
routes[XPCRoute.networkDelete] = harness.delete
333333

334334
return service
335335
}

0 commit comments

Comments
 (0)