Fixes nil table access upon nEdge http http_bridge_conf_utils.lua

Fixes

02/Mar/2019 18:16:46 [LuaEngine.cpp:8712] WARNING: Script failure [/home/simone/ntopng/scripts/callbacks/system/startup.lua][/home/simone/ntopng/scripts/lua/modules/tracker.lua:33: attempt to index a nil value (global '_SESSION')]
This commit is contained in:
Simone Mainardi 2019-03-02 18:19:08 +01:00
parent d68b76c795
commit f7cf85d169
2 changed files with 8 additions and 3 deletions

View file

@ -31,8 +31,8 @@ end
local http_bridge_conf_utils = {}
-- set to a non-empty value to enable HTTP configuration, e.g.,
-- http_bridge_conf_utils.HTTP_BRIDGE_CONFIGURATION_URL = "localhost:8000"
http_bridge_conf_utils.HTTP_BRIDGE_CONFIGURATION_URL = ""
http_bridge_conf_utils.HTTP_BRIDGE_CONFIGURATION_URL = "localhost:8000"
-- http_bridge_conf_utils.HTTP_BRIDGE_CONFIGURATION_URL = ""
function http_bridge_conf_utils.configureBridge()
if not isEmptyString(http_bridge_conf_utils.HTTP_BRIDGE_CONFIGURATION_URL) then