From 3ad59c1f018a820bcc6430d0a305316b81f31b54 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Wed, 10 Jan 2024 20:13:08 +0100 Subject: [PATCH] Fix preprocessor for ethernet on-demand --- .../PassepartoutVPNImpl/Extensions/OnDemand+Rules.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PassepartoutLibrary/Sources/PassepartoutVPNImpl/Extensions/OnDemand+Rules.swift b/PassepartoutLibrary/Sources/PassepartoutVPNImpl/Extensions/OnDemand+Rules.swift index 56189c85..63c0eade 100644 --- a/PassepartoutLibrary/Sources/PassepartoutVPNImpl/Extensions/OnDemand+Rules.swift +++ b/PassepartoutLibrary/Sources/PassepartoutVPNImpl/Extensions/OnDemand+Rules.swift @@ -63,7 +63,7 @@ private extension Profile.OnDemand { rules.append(cellularRule()) } #endif - #if os(macOS) + #if targetEnvironment(macCatalyst) || os(macOS) if Utils.hasEthernet() && withEthernetNetwork { if let rule = ethernetRule() { rules.append(rule) @@ -123,7 +123,7 @@ private extension Profile.OnDemand { } #endif - #if os(macOS) + #if targetEnvironment(macCatalyst) || os(macOS) func ethernetRule() -> NEOnDemandRule? { guard let compatibleEthernet = NEOnDemandRuleInterfaceType.compatibleEthernet else { return nil