diff options
Diffstat (limited to 'tcpproxy-model.lua')
-rw-r--r-- | tcpproxy-model.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tcpproxy-model.lua b/tcpproxy-model.lua index d5e8a12..f361799 100644 --- a/tcpproxy-model.lua +++ b/tcpproxy-model.lua @@ -173,7 +173,7 @@ local function validatesmtpentry(entry) end local function getsmtpcmd(ipaddr) - config = config or parseconfigfile(fs.read_file(configfile)) + config = config or parseconfigfile(fs.read_file(configfile) or "") local smtpconfig = getsmtpconfig(config) local exec = "" for i,entry in ipairs(smtpconfig) do @@ -230,7 +230,7 @@ function listsmtpentries(self) local reverseaddress = {} for i,int in ipairs(entries.value) do reverseaddress[int.ipaddr or int.interface] = i end - config = config or parseconfigfile(fs.read_file(configfile)) + config = config or parseconfigfile(fs.read_file(configfile) or "") local smtpconfig = getsmtpconfig(config) for i,int in ipairs(smtpconfig) do local pos = reverseaddress[int.ipaddr] |