diff options
Diffstat (limited to 'applications/luci-upnp/luasrc/controller/upnp.lua')
-rw-r--r-- | applications/luci-upnp/luasrc/controller/upnp.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/applications/luci-upnp/luasrc/controller/upnp.lua b/applications/luci-upnp/luasrc/controller/upnp.lua index c40493dab..b5eaad5c9 100644 --- a/applications/luci-upnp/luasrc/controller/upnp.lua +++ b/applications/luci-upnp/luasrc/controller/upnp.lua @@ -69,10 +69,8 @@ function act_status() end end -function act_delete() - local path = luci.dispatcher.context.requestpath - local idx = tonumber(path[#path]) - +function act_delete(idx) + idx = tonumber(idx) if idx and idx > 0 then luci.sys.call("iptables -t filter -D MINIUPNPD %d 2>/dev/null" % idx) luci.sys.call("iptables -t nat -D MINIUPNPD %d 2>/dev/null" % idx) |