applications/luci-splash: use RETURN target for count rules
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 7 Jun 2009 13:29:17 +0000 (13:29 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 7 Jun 2009 13:29:17 +0000 (13:29 +0000)
applications/luci-splash/root/usr/sbin/luci-splash

index d12b9f3..3f6356a 100755 (executable)
@@ -75,7 +75,7 @@ end
 
 -- Add an iptables rule
 function add_rule(mac)
 
 -- Add an iptables rule
 function add_rule(mac)
-       os.execute("iptables -I luci_splash_counter -m mac --mac-source '"..mac.."'")
+       os.execute("iptables -I luci_splash_counter -m mac --mac-source '"..mac.."' -j RETURN")
        return os.execute("iptables -t nat -I luci_splash_leases -m mac --mac-source '"..mac.."' -j RETURN")
 end
 
        return os.execute("iptables -t nat -I luci_splash_leases -m mac --mac-source '"..mac.."' -j RETURN")
 end