Skip to content

Commit

Permalink
Merge pull request #27 from oxyc/which
Browse files Browse the repository at this point in the history
Fix ip6tables always being executed
  • Loading branch information
geerlingguy authored Dec 30, 2016
2 parents cb18e8c + 7005deb commit 357a188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/firewall.bash.j2
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ iptables -A INPUT -j DROP


# Configure IPv6 if ip6tables is present.
if [ -x $(which ip6tables) ]; then
if [ -x "$(which ip6tables 2>/dev/null)" ]; then

# Remove all rules and chains.
ip6tables -F
Expand Down

0 comments on commit 357a188

Please sign in to comment.