From 2414448845899ad67c1f4b39885c6e2cfc4a5b47 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 5 Aug 2008 13:23:40 +0000 Subject: [PATCH] applications/luci-splash: Minor Fixes --- applications/luci-splash/root/etc/init.d/luci_splash | 8 ++++++-- 1 file 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() { -- 2.25.1