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