From 457819b952418501918b6e906bf5e21e3b4f9af8 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 30 Jun 2013 12:34:36 +0200 Subject: xtables: fix missing afinfo configuration I noticed that the iprange match in IPv6 was broken, fix it by overriding the default family (IPv4) if -6 is passed. Signed-off-by: Pablo Neira Ayuso --- iptables/xtables-restore.c | 1 + 1 file changed, 1 insertion(+) (limited to 'iptables/xtables-restore.c') diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c index a5d2a65d..e66f10cd 100644 --- a/iptables/xtables-restore.c +++ b/iptables/xtables-restore.c @@ -233,6 +233,7 @@ xtables_restore_main(int argc, char *argv[]) break; case '6': h.family = AF_INET6; + xtables_set_nfproto(AF_INET6); break; } } -- cgit v1.2.3