Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

forgot rule.target

  • Loading branch information...
commit 8b3239c45247ee8ba05058db6bc477de1c03e2f9 1 parent 873c61f
@pkrumins authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  index.js
View
1  index.js
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.