summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-splash
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-05 13:23:40 +0000
committerSteven Barth <steven@midlink.org>2008-08-05 13:23:40 +0000
commit2414448845899ad67c1f4b39885c6e2cfc4a5b47 (patch)
tree0f4aac2172f65ce5df63c0c49c2f111a44f170d0 /applications/luci-splash
parent2755a46c4db548cbceafcfcdfa67d476b9c0a1c5 (diff)
applications/luci-splash: Minor Fixes
Diffstat (limited to 'applications/luci-splash')
-rwxr-xr-xapplications/luci-splash/root/etc/init.d/luci_splash8
1 files changed, 6 insertions, 2 deletions
diff --git a/applications/luci-splash/root/etc/init.d/luci_splash b/applications/luci-splash/root/etc/init.d/luci_splash
index 7541f9935..02fdd8b6a 100755
--- a/applications/luci-splash/root/etc/init.d/luci_splash
+++ b/applications/luci-splash/root/etc/init.d/luci_splash
@@ -8,10 +8,14 @@ iface_add() {
[ -n "$zone" ] || return 0
config_get gw "$cfg" gateway
- [ -n "$zone" ] || return 0
+ [ -n "$gw" ] || return 0
iptables -t nat -A zone_$zone_prerouting -j luci_splash_portal
- iptables -t nat -A luci_splash_portal -d "$gw" -p tcp -m multiport --dports 22,80,443 -j RETURN
+
+ for i in $gw
+ do
+ iptables -t nat -A luci_splash_portal -d "$i" -p tcp -m multiport --dports 22,80,443 -j RETURN
+ done
}
blacklist_add() {