Path fix for Windows prefs dump/restore

Fixes #1507
This commit is contained in:
Simone Mainardi 2017-10-05 10:00:34 +02:00
parent 2c597b4a1f
commit 90aadfe112

View file

@ -3621,7 +3621,7 @@ end
function savePrefsToDisk()
local dirs = ntop.getDirs()
local where = dirs.workingdir.."/runtimeprefs.json"
local where = fixPath(dirs.workingdir.."/runtimeprefs.json")
local keys = ntop.getKeysCache("ntopng.prefs.*")
local out = {}
@ -3641,7 +3641,7 @@ end
function readPrefsFromDisk()
local dirs = ntop.getDirs()
local where = dirs.workingdir.."/runtimeprefs.json"
local where = fixPath(dirs.workingdir.."/runtimeprefs.json")
local file = io.open(where, "r")
if(file ~= nil) then