captive: Fix another typo in captivectrl
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 2 May 2017 10:04:06 +0000 (11:04 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 22 Sep 2017 18:00:04 +0000 (19:00 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/misc-progs/captivectrl.c

index 1b64084..6b68f97 100644 (file)
@@ -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;