summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-fw/root
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-fw/root')
-rwxr-xr-xapplications/luci-fw/root/etc/init.d/luci_fw2
1 files changed, 2 insertions, 0 deletions
diff --git a/applications/luci-fw/root/etc/init.d/luci_fw b/applications/luci-fw/root/etc/init.d/luci_fw
index 5f09b52770..86d8a56a32 100755
--- a/applications/luci-fw/root/etc/init.d/luci_fw
+++ b/applications/luci-fw/root/etc/init.d/luci_fw
@@ -15,6 +15,8 @@ apply_portfw() {
[ -n "$ifname" ] || return 0
[ -n "$to" ] || return 0
+ dport=$(echo $dport | sed -e 's/-/:/')
+
ports=$(echo $to | cut -sd: -f2)
if [ -n "$ports" ]; then
ports="--dport $(echo $ports | sed -e 's/-/:/')"