Removed MUD implementation obsoleted by the service map

Fixes #4326
Fixes 3499
This commit is contained in:
Luca Deri 2020-10-11 16:42:24 +02:00
parent ac1ad3a3e3
commit 31a33b1b11
7 changed files with 0 additions and 921 deletions

View file

@ -1,30 +0,0 @@
--
-- (C) 2019-20 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
local mud_utils = require("mud_utils")
local json = require("dkjson")
local host = _GET["host"]
if(_GET["ifid"] ~= nil) then
interface.select(_GET["ifid"])
end
sendHTTPHeader('application/json')
if(host == nil) then
print("{}")
return
end
local mud = mud_utils.getHostMUD(host)
if(mud ~= nil) then
print(json.encode(mud, {indent=true}))
else
print("{}")
end