diff --git a/features/gen_basic.feature b/features/gen_basic.feature index 38bbe05..0a70c9f 100644 --- a/features/gen_basic.feature +++ b/features/gen_basic.feature @@ -323,7 +323,7 @@ Feature: Basic Generate Functionality And the output should match: """ Action - \s*Disconnect + \s*Ignore \s*InterfaceTypeMatch \s*Cellular """ diff --git a/lib/ovpnmcgen.rb b/lib/ovpnmcgen.rb index 63faac2..f639a63 100644 --- a/lib/ovpnmcgen.rb +++ b/lib/ovpnmcgen.rb @@ -122,14 +122,14 @@ def generate(inputs = {}) vodCellularOnly = { # Trust Cellular 'InterfaceTypeMatch' => 'Cellular', 'Action' => case inputs[:security_level] - when 'paranoid' - 'Connect' - when 'high' - 'Ignore' - else # medium - 'Disconnect' - end + when 'paranoid' + 'Connect' + else # high, medium + 'Ignore' + end } + + # Default catch-all to prevent circular race. vodDefault = { # Default catch-all 'Action' => 'Ignore' }