From 75b4b2081522ab2f680ca0edf2242bc6f28a0ef7 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Thu, 15 Nov 2007 13:06:58 +0000 Subject: 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 --- extensions/libipt_REDIRECT.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions/libipt_REDIRECT.c') diff --git a/extensions/libipt_REDIRECT.c b/extensions/libipt_REDIRECT.c index 077b6d88..f749dd1e 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' }, { } }; -- cgit v1.2.3