Skip to content

Commit

Permalink
fix log
Browse files Browse the repository at this point in the history
  • Loading branch information
rufengsuixing committed Jan 6, 2020
1 parent c9d1cff commit d8dcf01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion luasrc/controller/autoipsetadder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ end
function get_log()
local logfile=uci:get("autoipsetadder","autoipsetadder","logfile") or "/tmp/addlist.log"
luci.http.prepare_content("text/plain; charset=utf-8")
if fs.access(logfile) then
if not fs.access(logfile) then
luci.http.write("")
return
end
Expand Down

0 comments on commit d8dcf01

Please sign in to comment.