diff --git a/luci-app-godproxy/rulesupdate.log b/luci-app-godproxy/rulesupdate.log
index e217694ad..9495f9bae 100644
--- a/luci-app-godproxy/rulesupdate.log
+++ b/luci-app-godproxy/rulesupdate.log
@@ -1,47 +1,51 @@
-2021-11-20 11:38:33: ------------------- 规则更新 -----------------------
-2021-11-20 11:38:33: ====================================================
-2021-11-20 11:38:33: 开始更新koolproxy的规则,请等待...
-2021-11-20 11:38:33: ---------------------------------------------------------------------------------------
-2021-11-20 11:38:34: ABP规则的本地版本号: 202111201046
-2021-11-20 11:38:34: ABP规则的在线版本号: 202111201126
-2021-11-20 11:38:34: 检测到 ABP规则 已更新,现在开始更新...
-2021-11-20 11:38:34: 将临时的ABP规则文件移动到指定位置
-2021-11-20 11:38:34: ---------------------------------------------------------------------------------------
-2021-11-20 11:38:35: Fanboy规则本地版本号: 202111201050
-2021-11-20 11:38:35: Fanboy规则在线版本号: 202111201100
-2021-11-20 11:38:35: 检测到新版本 Fanboy规则 列表,开始更新...
-2021-11-20 11:38:35: 将临时文件覆盖到原始 Fanboy规则 文件
-2021-11-20 11:38:36: ---------------------------------------------------------------------------------------
-2021-11-20 11:38:36: Yhosts规则本地版本号: 202111082343
-2021-11-20 11:38:36: Yhosts规则在线版本号: 202111082343
-2021-11-20 11:38:36: 检测到Yhosts本地版本号和在线版本号相同,那还更新个毛啊!
-2021-11-20 11:38:36: ---------------------------------------------------------------------------------------
-2021-11-20 11:38:36: Antiad规则本地版本号: 20211120024124
-2021-11-20 11:38:36: Antiad规则在线版本号: 20211120024124
-2021-11-20 11:38:36: 检测到 Antiad规则 本地版本号和在线版本号相同,那还更新个毛啊!
-2021-11-20 11:38:36: ---------------------------------------------------------------------------------------
-2021-11-20 11:38:36: StevenBlack规则本地版本号: 18 November 2021
-2021-11-20 11:38:36: StevenBlack规则在线版本号: 18 November 2021
-2021-11-20 11:38:36: 检测到 StevenBlack规则 本地版本号和在线版本号相同,那还更新个毛啊!
-2021-11-20 11:38:36: ---------------------------------------------------------------------------------------
-2021-11-20 11:38:36: AdGuard DNS规则本地版本号: 2021-11-20T06:05:15.020Z
-2021-11-20 11:38:36: AdGuard DNS规则在线版本号: 2021-11-20T06:05:15.020Z
-2021-11-20 11:38:36: 检测到 AdGuard DNS规则 本地版本号和在线版本号相同,那还更新个毛啊!
-2021-11-20 11:38:36: 正在优化 ABP规则。。。。。
-2021-11-20 11:38:48: 正在优化 Fanboy规则。。。。。
-2021-11-20 11:38:53: 跳过优化 补充规则Yhosts。。。。。
-2021-11-20 11:38:53: 跳过优化 补充规则Antiad。。。。。
-2021-11-20 11:38:53: 跳过优化 补充规则StevenBlack。。。。。
-2021-11-20 11:38:53: 跳过优化 补充规则 AdGuard DNS。。。。。
-2021-11-20 11:38:53: 所有规则更新并优化完毕!
-2021-11-20 11:38:53: ====================================================
-2021-11-20 11:38:55: -------------------ABP规则 version 202111201126
-2021-11-20 11:38:55: -------------------Fanboy规则 version 202111201100
-2021-11-20 11:38:55: -------------------Yhosts规则 version 202111082343
-2021-11-20 11:38:55: -------------------Antiad规则 version 20211120024124
-2021-11-20 11:38:55: -------------------AdGuard DNS规则 version 2021-11-20T06:05:15.020Z
-2021-11-20 11:38:55: -------------------StevenBlack规则 version 18 November 2021
-2021-11-20 11:38:55: -------------------静态规则 version 2021-10-07 18:00
-2021-11-20 11:38:55: -------------------乘风视频 version 202111131
-2021-11-20 11:38:55: ------------------- 内置规则更新成功! -------------------
-2021-11-20 11:38:55: ------------------- 规则更新成功! -------------------
+2021-11-20 16:32:28: ------------------- 规则更新 -----------------------
+2021-11-20 16:32:28: ====================================================
+2021-11-20 16:32:28: 开始更新koolproxy的规则,请等待...
+2021-11-20 16:32:28: ---------------------------------------------------------------------------------------
+2021-11-20 16:32:30: ABP规则的本地版本号: 202111201616
+2021-11-20 16:32:30: ABP规则的在线版本号: 202111201616
+2021-11-20 16:32:30: 检测到 ABP规则本地版本号和在线版本号相同,那还更新个毛啊!
+2021-11-20 16:32:30: ---------------------------------------------------------------------------------------
+2021-11-20 16:32:31: Fanboy规则本地版本号: 202111201600
+2021-11-20 16:32:31: Fanboy规则在线版本号: 202111201600
+2021-11-20 16:32:31: 检测到 Fanboy规则 本地版本号和在线版本号相同,那还更新个毛啊!
+2021-11-20 16:32:31: ---------------------------------------------------------------------------------------
+2021-11-20 16:32:31: Yhosts规则本地版本号: 202111082343
+2021-11-20 16:32:31: Yhosts规则在线版本号: 202111082343
+2021-11-20 16:32:31: 检测到Yhosts本地版本号和在线版本号相同,那还更新个毛啊!
+2021-11-20 16:32:31: ---------------------------------------------------------------------------------------
+2021-11-20 16:32:31: Antiad规则本地版本号: 20211120024124
+2021-11-20 16:32:31: Antiad规则在线版本号: 20211120024124
+2021-11-20 16:32:31: 检测到 Antiad规则 本地版本号和在线版本号相同,那还更新个毛啊!
+2021-11-20 16:32:31: ---------------------------------------------------------------------------------------
+2021-11-20 16:32:31: StevenBlack规则本地版本号: 18 November 2021
+2021-11-20 16:32:31: StevenBlack规则在线版本号: 18 November 2021
+2021-11-20 16:32:31: 检测到 StevenBlack规则 本地版本号和在线版本号相同,那还更新个毛啊!
+2021-11-20 16:32:31: ---------------------------------------------------------------------------------------
+2021-11-20 16:32:31: AdGuard DNS规则本地版本号: 2021-11-20T12:07:18.124Z
+2021-11-20 16:32:31: AdGuard DNS规则在线版本号: 2021-11-20T12:07:18.124Z
+2021-11-20 16:32:31: 检测到 AdGuard DNS规则 本地版本号和在线版本号相同,那还更新个毛啊!
+2021-11-20 16:32:31: ---------------------------------------------------------------------------------------
+2021-11-20 16:32:32: ADgk规则本地版本号:
+2021-11-20 16:32:32: ADgk规则在线版本号: 20211120183731
+2021-11-20 16:32:32: 检测到新版本 ADgk规则 列表,开始更新...
+2021-11-20 16:32:32: 将临时文件覆盖到原始 ADgk规则 文件
+2021-11-20 16:32:32: 跳过优化 ABP规则。。。。。
+2021-11-20 16:32:32: 跳过优化 Fanboy规则。。。。。
+2021-11-20 16:32:32: 跳过优化 补充规则Yhosts。。。。。
+2021-11-20 16:32:32: 跳过优化 补充规则Antiad。。。。。
+2021-11-20 16:32:32: 跳过优化 补充规则StevenBlack。。。。。
+2021-11-20 16:32:32: 跳过优化 补充规则 AdGuard DNS。。。。。
+2021-11-20 16:32:32: 正在优化 ADgk规则。。。。。
+2021-11-20 16:32:43: 所有规则更新并优化完毕!
+2021-11-20 16:32:43: ====================================================
+2021-11-20 16:32:44: -------------------ABP规则 version 202111201616
+2021-11-20 16:32:44: -------------------Fanboy规则 version 202111201600
+2021-11-20 16:32:44: -------------------Yhosts规则 version 202111082343
+2021-11-20 16:32:44: -------------------Antiad规则 version 20211120024124
+2021-11-20 16:32:44: -------------------AdGuard DNS规则 version
+2021-11-20 16:32:44: -------------------StevenBlack规则 version 18 November 2021
+2021-11-20 16:32:44: -------------------静态规则 version 2021-10-07 18:00
+2021-11-20 16:32:44: -------------------乘风视频 version 202111131
+2021-11-20 16:32:44: ------------------- 内置规则更新成功! -------------------
+2021-11-20 16:32:44: ------------------- 规则更新成功! -------------------
diff --git a/luci-app-passwall/luasrc/model/cbi/passwall/client/acl.lua b/luci-app-passwall/luasrc/model/cbi/passwall/client/acl.lua
index da2711c48..4a9dd675e 100644
--- a/luci-app-passwall/luasrc/model/cbi/passwall/client/acl.lua
+++ b/luci-app-passwall/luasrc/model/cbi/passwall/client/acl.lua
@@ -36,19 +36,15 @@ sys.net.mac_hints(function(e, t)
}
end)
-o = s:option(DummyValue, "_source", translate("Source"))
+o = s:option(DummyValue, "sources", translate("Source"))
o.rawhtml = true
o.cfgvalue = function(t, n)
local e = ''
- local v = ''
- local source = m:get(n, "source") or "ip_mac"
- v = m:get(n, source) or ""
+ local v = Value.cfgvalue(t, n) or ''
string.gsub(v, '[^' .. " " .. ']+', function(w)
local a = w
- if source == "ip_mac" and mac_t[w] then
+ if mac_t[w] then
a = a .. ' (' .. mac_t[w].ip .. ')'
- elseif source == "ipset" then
- a = 'ipset: ' .. a
end
if #e > 0 then
e = e .. "
"
diff --git a/luci-app-passwall/luasrc/model/cbi/passwall/client/acl_config.lua b/luci-app-passwall/luasrc/model/cbi/passwall/client/acl_config.lua
index 0c23c6e86..bee188241 100644
--- a/luci-app-passwall/luasrc/model/cbi/passwall/client/acl_config.lua
+++ b/luci-app-passwall/luasrc/model/cbi/passwall/client/acl_config.lua
@@ -49,21 +49,6 @@ o = s:option(Value, "remarks", translate("Remarks"))
o.default = arg[1]
o.rmempty = true
----- Source
-source = s:option(ListValue, "source", translate("Source Type"))
-source.rmempty = false
-source.default = "ip_mac"
-source:value("ip_mac", translate("IP/MAC"))
-if os.execute("lsmod | grep -i iprange >/dev/null") == 0 then
- source:value("iprange", translate("IP range"))
-end
-source:value("ipset", "IPSet")
-
-source_ip_mac = s:option(DynamicList, "ip_mac", translate("IP/MAC"))
-source_ip_mac.datatype = "or(ip4addr,macaddr)"
-source_ip_mac.cast = "string"
-source_ip_mac:depends("source", "ip_mac")
-
local mac_t = {}
sys.net.mac_hints(function(e, t)
mac_t[#mac_t + 1] = {
@@ -83,39 +68,72 @@ table.sort(mac_t, function(a,b)
end
return false
end)
-for _, key in pairs(mac_t) do
- source_ip_mac:value(key.mac, "%s (%s)" % {key.mac, key.ip})
-end
-source_ip_mac.write = dynamicList_write
-source_iprange = s:option(DynamicList, "iprange", translate("IP range"))
-source_iprange.cast = "string"
-source_iprange:depends("source", "iprange")
-source_iprange.write = dynamicList_write
-source_iprange.validate = function(self, value, t)
+---- Source
+sources = s:option(DynamicList, "sources", translate("Source"))
+sources.description = "