mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
parent
4198318c9b
commit
25ed8843e6
3 changed files with 19 additions and 4 deletions
|
|
@ -3432,6 +3432,16 @@ end
|
|||
|
||||
-- ###########################################
|
||||
|
||||
function getHttpUrlPrefix()
|
||||
if starts(_SERVER["HTTP_HOST"], 'https://') then
|
||||
return "https://"
|
||||
else
|
||||
return "http://"
|
||||
end
|
||||
end
|
||||
|
||||
-- ###########################################
|
||||
|
||||
-- Compares IPv4 / IPv6 addresses
|
||||
function ip_address_asc(a, b)
|
||||
return(ntop.ipCmp(a, b) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue