mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
XML module code cleanup
This commit is contained in:
parent
36b55de396
commit
65ac511689
1 changed files with 4 additions and 2 deletions
|
|
@ -3,6 +3,8 @@
|
|||
--
|
||||
local json = require "dkjson"
|
||||
|
||||
require "xmlSimple"
|
||||
|
||||
local discover = {}
|
||||
|
||||
discover.debug = false
|
||||
|
|
@ -231,7 +233,7 @@ end
|
|||
|
||||
-- ################################################################################
|
||||
|
||||
function discover.clearNetworkDiscovery(ifid)
|
||||
function discover.clearNetworkDiscovery(ifid)
|
||||
ntop.delCache(getRequestNetworkDiscoveryKey(ifid))
|
||||
end
|
||||
|
||||
|
|
@ -872,7 +874,7 @@ local function analyzeSSDP(ssdp)
|
|||
local friendlyName = ""
|
||||
|
||||
if(hresp ~= nil) then
|
||||
local xml = require("xmlSimple").newParser()
|
||||
local xml = newParser()
|
||||
local r = xml:ParseXmlText(hresp["CONTENT"])
|
||||
|
||||
if(r.root ~= nil) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue