summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-splash/root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-splash/root/etc')
-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() {