mirror of
https://github.com/openwrt/packages.git
synced 2025-12-22 01:44:32 +04:00
banip: update 1.0.0-3
* fixed a regression in the split Set function (reported in the forum) * fixed regex for urlhaus feed Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=banip
|
PKG_NAME:=banip
|
||||||
PKG_VERSION:=1.0.0
|
PKG_VERSION:=1.0.0
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
PKG_LICENSE:=GPL-3.0-or-later
|
PKG_LICENSE:=GPL-3.0-or-later
|
||||||
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
|
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
|
||||||
|
|
||||||
|
|||||||
@@ -1048,8 +1048,7 @@ f_down() {
|
|||||||
# split Sets
|
# split Sets
|
||||||
#
|
#
|
||||||
if [ "${feed_rc}" = "0" ]; then
|
if [ "${feed_rc}" = "0" ]; then
|
||||||
if [ -n "${ban_splitsize//[![:digit:]]/}" ]; then
|
if [ -n "${ban_splitsize//[![:digit:]]/}" ] && [ "${ban_splitsize//[![:digit:]]/}" -ge "512" ]; then
|
||||||
[ "${ban_splitsize//[![:digit:]]/}" -lt "512" ] && ban_splitsize="512"
|
|
||||||
if ! "${ban_awkcmd}" "NR%${ban_splitsize//[![:digit:]]/}==1{file=\"${tmp_file}.\"++i;}{ORS=\" \";print > file}" "${tmp_split}" 2>/dev/null; then
|
if ! "${ban_awkcmd}" "NR%${ban_splitsize//[![:digit:]]/}==1{file=\"${tmp_file}.\"++i;}{ORS=\" \";print > file}" "${tmp_split}" 2>/dev/null; then
|
||||||
feed_rc="${?}"
|
feed_rc="${?}"
|
||||||
rm -f "${tmp_file}".*
|
rm -f "${tmp_file}".*
|
||||||
|
|||||||
@@ -277,7 +277,7 @@
|
|||||||
},
|
},
|
||||||
"urlhaus":{
|
"urlhaus":{
|
||||||
"url_4": "https://urlhaus.abuse.ch/downloads/ids/",
|
"url_4": "https://urlhaus.abuse.ch/downloads/ids/",
|
||||||
"rule_4": "match($0,/content:\"127\\./{next}/(content:\"([1-9][0-9]{0,2}\\.){1}([0-9]{1,3}\\.){2}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5]))/){printf \"%s,\\n\",substr($0,RSTART+9,RLENGTH-9)}",
|
"rule_4": "BEGIN{FS=\";\"}/content:\"127\\./{next}/(content:\"([1-9][0-9]{0,2}\\.){1}([0-9]{1,3}\\.){2}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5]))/{printf \"%s,\\n\",substr($10,11,length($10)-11)}",
|
||||||
"descr": "urlhaus IDS IPs"
|
"descr": "urlhaus IDS IPs"
|
||||||
},
|
},
|
||||||
"urlvir":{
|
"urlvir":{
|
||||||
|
|||||||
Reference in New Issue
Block a user