mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-19 14:13:30 +00:00
update chnrouter ipset
This commit is contained in:
parent
a4acf63830
commit
186d20bf79
@ -6,8 +6,8 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=ipset-lists
|
||||
PKG_VERSION:=20171019
|
||||
PKG_RELEASE:=3
|
||||
PKG_VERSION:=20181104
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,14 +0,0 @@
|
||||
--[[
|
||||
Customize /etc/gfwlist.list content
|
||||
Copyright (c) 2015 Justin Liu
|
||||
Author: Justin Liu <rssnsj@gmail.com>
|
||||
https://github.com/rssnsj/network-feeds
|
||||
]]--
|
||||
|
||||
module("luci.controller.gfwlist", package.seeall)
|
||||
|
||||
function index()
|
||||
local page
|
||||
page = entry({"admin", "services", "gfwlist"}, cbi("gfwlist"), _("Domain Lists"))
|
||||
page.dependent = true
|
||||
end
|
Binary file not shown.
@ -1,33 +0,0 @@
|
||||
--[[
|
||||
Customize firewall-banned domain lists - /etc/gfwlist/
|
||||
Copyright (c) 2015 Justin Liu
|
||||
Author: Justin Liu <rssnsj@gmail.com>
|
||||
https://github.com/rssnsj/network-feeds
|
||||
]]--
|
||||
|
||||
local fs = require "nixio.fs"
|
||||
|
||||
function sync_value_to_file(value, file)
|
||||
value = value:gsub("\r\n?", "\n")
|
||||
local old_value = nixio.fs.readfile(file)
|
||||
if value ~= old_value then
|
||||
nixio.fs.writefile(file, value)
|
||||
end
|
||||
end
|
||||
|
||||
m = SimpleForm("gfwlist", translate("Domain Lists Settings"))
|
||||
|
||||
for e in fs.dir("/etc/gfwlist") do
|
||||
glist = m:field(TextValue, e, e, nil)
|
||||
glist.rmempty = false
|
||||
glist.rows = 12
|
||||
|
||||
function glist.cfgvalue()
|
||||
return nixio.fs.readfile("/etc/gfwlist/" .. e) or ""
|
||||
end
|
||||
function glist.write(self, section, value)
|
||||
sync_value_to_file(value, "/etc/gfwlist/" .. e)
|
||||
end
|
||||
end
|
||||
|
||||
return m
|
Loading…
Reference in New Issue
Block a user