From: Michael Tremer Date: Tue, 2 May 2017 10:04:06 +0000 (+0100) Subject: captive: Fix another typo in captivectrl X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5511fa319a68abcccd68e575f68383f58cb1a388;p=people%2Fms%2Fipfire-2.x.git captive: Fix another typo in captivectrl Signed-off-by: Michael Tremer --- diff --git a/src/misc-progs/captivectrl.c b/src/misc-progs/captivectrl.c index 1b6408426e..6b68f97b32 100644 --- a/src/misc-progs/captivectrl.c +++ b/src/misc-progs/captivectrl.c @@ -262,7 +262,7 @@ static int add_interface_rule(const char* intf, int allow_webif_access) { // Allow access to captive portal site snprintf(command, sizeof(command), IPTABLES " -A CAPTIVE_PORTAL_CLIENTS" - " -d %s -p tcp --dport %d -j RETURN", intf, REDIRECT_PORT); + " -i %s -p tcp --dport %d -j RETURN", intf, REDIRECT_PORT); r = safe_system(command); if (r) return r;