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 d12b9f3a337eef7434fd403cc0b09346598b1c0f..3f6356a9b3bae26703b7d018ba6ab0e27add2f0f 100755 (executable)
@@ -75,7 +75,7 @@ end
 
 -- 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