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