ntopng/scripts/lua/stop_live_capture.lua
2018-08-08 16:35:59 +02:00

18 lines
389 B
Lua

--
-- (C) 2013-18 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
interface.select(ifname)
interface.stopLiveCapture(tonumber(_GET["capture_id"]))
sendHTTPContentTypeHeader('text/html')
print [[
<head>
<meta http-equiv="refresh" content="0; URL=/lua/live_capture_stats.lua" />
</head>
]]