Update unblockmusiclog.lua

This commit is contained in:
coolsnowwolf 2019-10-30 00:46:46 +08:00 committed by GitHub
parent 2a05eb07ab
commit 5f10bf015a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ t = f:field(TextValue, "conf")
t.rmempty = true
t.rows = 20
function t.cfgvalue()
luci.sys.exec(" sed '/MITM/d' /tmp/unblockmusic.log > /tmp/music.log")
luci.sys.exec("cat /tmp/unblockmusic.log | grep http > /tmp/music.log")
return fs.readfile(conffile) or ""
end
t.readonly="readonly"