Skip to content

Commit

Permalink
Added support for source and destination port.
Browse files Browse the repository at this point in the history
  • Loading branch information
derfel committed Feb 7, 2015
1 parent 15f142e commit e07a557
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/iptables/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ exports.processCommonRuleSpecs = function (options) {
manage_arg(options.destination, '--destination', args);
manage_arg(options['in-interface'], '--in-interface', args);
manage_arg(options['out-interface'], '--out-interface', args);
manage_arg(options['source-port'], '--sport', args);
manage_arg(options['destination-port'], '--dport', args);
manage_arg(options.fragment, '--fragment', args, true);

/*
Expand Down

0 comments on commit e07a557

Please sign in to comment.