Skip to content

Commit

Permalink
build: disable VPN and URL features on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
osy committed Aug 12, 2021
1 parent 69f50f3 commit a98f86c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Jitterbug/Main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ class Main: NSObject, ObservableObject {
refreshPairings()
refreshSupportImages()
unarchiveSavedHosts()
#if !os(macOS)
initTunnel()
#endif
}

func backgroundTask(message: String?, task: @escaping () throws -> Void, onComplete: @escaping () -> Void = {}) {
Expand Down Expand Up @@ -436,6 +438,7 @@ extension Main: HostFinderDelegate {
}
#endif

#if !os(macOS)
// MARK: - VPN Tunnel
extension Main {
private func initTunnel(onSuccess: (() -> ())? = nil) {
Expand Down Expand Up @@ -595,3 +598,4 @@ extension Main {
}
}
}
#endif

0 comments on commit a98f86c

Please sign in to comment.