mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Require loop check
This commit is contained in:
parent
69b5b6998b
commit
a5348b8823
1 changed files with 9 additions and 0 deletions
|
|
@ -6,6 +6,15 @@
|
|||
-- core. Users can provide their own modules to trigger custom alerts,
|
||||
-- export data, or perform periodic tasks.
|
||||
|
||||
|
||||
-- Hack to avoid include loops
|
||||
if(pragma_once_user_scripts == true) then
|
||||
-- avoid multiple inclusions
|
||||
return
|
||||
end
|
||||
|
||||
pragma_once_user_scripts = true
|
||||
|
||||
local dirs = ntop.getDirs()
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/pools/?.lua;" .. package.path
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue