mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Handles possibly missing nindex_utils as in Windows
This commit is contained in:
parent
9c5f4f8198
commit
8c9bf94f4b
4 changed files with 13 additions and 4 deletions
|
|
@ -29,7 +29,9 @@ local email_peer_pattern = [[^(([A-Za-z0-9._%+-]|\s)+<)?[A-Za-z0-9._%+-]+@[a-z0-
|
|||
if(ntop.isPro()) then
|
||||
package.path = dirs.installdir .. "/scripts/lua/pro/?.lua;" .. package.path
|
||||
package.path = dirs.installdir .. "/scripts/lua/pro/modules/?.lua;" .. package.path
|
||||
nindex_utils = require("nindex_utils")
|
||||
if hasNindexSupport() then
|
||||
nindex_utils = require("nindex_utils")
|
||||
end
|
||||
end
|
||||
|
||||
sendHTTPContentTypeHeader('text/html')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue