diff options
Diffstat (limited to 'shorewall-model.lua')
-rw-r--r-- | shorewall-model.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shorewall-model.lua b/shorewall-model.lua index 53e56d7..f6a2527 100644 --- a/shorewall-model.lua +++ b/shorewall-model.lua @@ -3,7 +3,7 @@ module(..., package.seeall) -- Load libraries require("modelfunctions") require("fs") -require("getopts") +require("format") -- Set variables local configfile = "/etc/shorewall/shorewall.conf" @@ -198,7 +198,7 @@ function configcheck () end function getlogfile () - local logfilepath = getopts.getoptsfromfile(configfile,"","LOGFILE") or "" + local logfilepath = format.parse_configfile2(fs.read_file(configfile),"","LOGFILE") or "" return cfe({ value=logfilepath, label="Shorewall logfile" }) end |