mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Add isnEdge checks. Selecting traffic interface to get host info.
This commit is contained in:
parent
7182f22fbe
commit
7bcf09b40a
3 changed files with 17 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ local captive_portal_utils = {}
|
|||
function captive_portal_utils.is_logged(ip)
|
||||
local member = ip
|
||||
|
||||
interface.select("0")
|
||||
local host_info = interface.getHostInfo(member)
|
||||
if not host_info then
|
||||
return false
|
||||
|
|
@ -39,6 +40,7 @@ end
|
|||
function captive_portal_utils.logout(ip)
|
||||
local member = ip
|
||||
|
||||
interface.select("0")
|
||||
local host_info = interface.getHostInfo(member)
|
||||
if not host_info then
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue