Permalink
Browse files

forgot rule.target

  • Loading branch information...
1 parent 873c61f commit 8b3239c45247ee8ba05058db6bc477de1c03e2f9 @pkrumins committed Apr 3, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 index.js
View
@@ -45,6 +45,7 @@ function iptablesArgs (rule) {
if (rule.dst) args = args.concat(["--dst", rule.dst]);
if (rule.dport) args = args.concat(["--dport", rule.dport]);
if (rule.sport) args = args.concat(["--sport", rule.sport]);
+ if (rule.target) args = args.concat(["-j", rule.target]);
return args;
}

0 comments on commit 8b3239c

Please sign in to comment.