Browse Source

open empty config with no error

rufengsuixing 5 years ago
parent
commit
cf68da953a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      luasrc/model/cbi/AdGuardHome/manual.lua

+ 1 - 1
luasrc/model/cbi/AdGuardHome/manual.lua

@@ -16,7 +16,7 @@ o.rows = 66
 o.wrap = "off"
 o.rmempty = true
 o.cfgvalue = function(self, section)
-	return NXFS.readfile("/tmp/AdGuardHometmpconfig.yaml") or NXFS.readfile(escconf)
+	return NXFS.readfile("/tmp/AdGuardHometmpconfig.yaml") or NXFS.readfile(escconf) or ""
 end
 o.validate=function(self, value)
     NXFS.writefile("/tmp/AdGuardHometmpconfig.yaml", value:gsub("\r\n", "\n"))