Skip to content

Commit 547b548

Browse files
authored
Merge pull request #120 from kkebo/119-remove-as-is-action
2 parents 06c5a5f + 3591b98 commit 547b548

3 files changed

Lines changed: 9 additions & 16 deletions

File tree

DNSecure/Extensions/NEOnDemandRuleAction+CaseIterable.swift

Lines changed: 0 additions & 14 deletions
This file was deleted.

DNSecure/Models/Resolver.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ extension Configuration: CustomStringConvertible {
109109
struct OnDemandRule {
110110
var id = UUID()
111111
var name: String
112-
var action: NEOnDemandRuleAction = .ignore
112+
var action: NEOnDemandRuleAction = .connect
113113
var interfaceType: NEOnDemandRuleInterfaceType = .any
114114
var ssidMatch: [String] = []
115115
var dnsSearchDomainMatch: [String] = []

DNSecure/Views/RuleView.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,14 @@ extension RuleView: View {
5656

5757
Section {
5858
Picker("Action", selection: self.$rule.action) {
59-
ForEach(NEOnDemandRuleAction.allCases, id: \.self) {
59+
ForEach(
60+
[
61+
NEOnDemandRuleAction.connect,
62+
.evaluateConnection,
63+
.disconnect,
64+
],
65+
id: \.self
66+
) {
6067
Text($0.description)
6168
}
6269
}

0 commit comments

Comments
 (0)