antiblock: Update to 2.1.2r2

1) Added the ability to disable routes without deleting them.

Signed-off-by: Khachatryan Karen <karen0734@gmail.com>
This commit is contained in:
Khachatryan Karen
2025-05-27 21:38:09 +03:00
committed by Hannu Nyman
parent 1410fcc5f9
commit d2a6cbf10a
2 changed files with 10 additions and 6 deletions

View File

@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=antiblock
PKG_VERSION:=2.1.2
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/karen07/antiblock

View File

@@ -10,13 +10,17 @@ blacklist_file="$tmp_folder/blacklist"
routes_parse() {
local _config="$1"
local _gateway
local _domains_path
local _enabled
config_get_bool _enabled "${_config}" "enabled" "1"
if [ "${_enabled}" -eq "1" ]; then
local _gateway
local _domains_path
config_get _gateway "${_config}" gateway
config_get _domains_path "${_config}" domains_path
config_get _gateway "${_config}" gateway
config_get _domains_path "${_config}" domains_path
procd_append_param command -r "${_gateway} ${_domains_path}"
procd_append_param command -r "${_gateway} ${_domains_path}"
fi
}
blacklist_parse() {