summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_REDIRECT.c
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2007-11-15 13:06:58 +0000
committer/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2007-11-15 13:06:58 +0000
commit35427b903ea3077ac84192a8f1ff9f653b852732 (patch)
treecdf4591c56a06e689353002652068f3a7a0eef72 /extensions/libipt_REDIRECT.c
parentab5929dcb2ea3d79f01067f15110835fba6dec2b (diff)
PATCH - Fix for --random option in DNAT and REDIRECT
The --random option produces "Unknown arg `--random'" errors with both the DNAT and REDIRECT targets. Corrected by the attached patch. Tom Eastep <teastep@shorewall.net>
Diffstat (limited to 'extensions/libipt_REDIRECT.c')
-rw-r--r--extensions/libipt_REDIRECT.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libipt_REDIRECT.c b/extensions/libipt_REDIRECT.c
index 077b6d8..f749dd1 100644
--- a/extensions/libipt_REDIRECT.c
+++ b/extensions/libipt_REDIRECT.c
@@ -23,7 +23,7 @@ IPTABLES_VERSION);
static const struct option REDIRECT_opts[] = {
{ "to-ports", 1, NULL, '1' },
- { "random", 1, NULL, '2' },
+ { "random", 0, NULL, '2' },
{ }
};