applications/luci-fw: Added support for luci-mini
[project/luci.git] / applications / luci-fw / root / etc / init.d / luci_fw
index 5f09b52..86d8a56 100755 (executable)
@@ -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/-/:/')"