]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
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 1b6408426e1d1c3624326c516f64098b237070a8..6b68f97b32bbecf8b635e84e019d5dcf7022a01c 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;