Skip to content

Commit

Permalink
M #-: Easier condition
Browse files Browse the repository at this point in the history
  • Loading branch information
rsmontero committed Dec 5, 2023
1 parent 2e27704 commit a47f639
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vnm_mad/remotes/lib/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ module VNMNetwork

iptables_version = Gem::Version.new(stdout.match(regex)[:version])

if Gem::Version.new('1.6.1') > iptables_version || iptables_version > Gem::Version.new('1.8.7')
if iptables_version <= Gem::Version.new('1.6.1') ||
iptables_version > Gem::Version.new('1.8.7')
COMMANDS[:iptables] = 'sudo -n iptables -w 3'
COMMANDS[:ip6tables] = 'sudo -n ip6tables -w 3'
end
Expand Down

0 comments on commit a47f639

Please sign in to comment.