From 03f1fc4788365181c7946a4b65f6655e7d40c914 Mon Sep 17 00:00:00 2001 From: bol-van Date: Mon, 2 Mar 2026 14:18:18 +0300 Subject: [PATCH] init.d: warn if ipset/hostlist files inside zapret2 root --- common/base.sh | 7 +++++++ docs/changes.txt | 1 + 2 files changed, 8 insertions(+) diff --git a/common/base.sh b/common/base.sh index 25bc941..ef2db44 100644 --- a/common/base.sh +++ b/common/base.sh @@ -438,6 +438,13 @@ has_bad_ws_options() echo "Kernel ipsets should be used instead. Write custom scripts and filter IPs in kernel." echo } + contains "$1" "--ipset=$ZAPRET_BASE" || contains "$1" "--ipset-exclude=$ZAPRET_BASE" || + contains "$1" "--hostlist=$ZAPRET_BASE" || contains "$1" "--hostlist-exclude=$ZAPRET_BASE" && { + echo + echo "WARNING !!! you store ipset or hostlist files inside '$ZAPRET_BASE'" + echo "It's not recommended. install_easy.sh will delete them during update." + echo + } return 1 } diff --git a/docs/changes.txt b/docs/changes.txt index 878039b..6152a62 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -264,3 +264,4 @@ v0.9.4.3 * winws2, dvtws2: ASLR * github, linux-builder: reduce arm executable size by 20% - move to armv7+thumb +* init.d: warn if hostlist/ipset files are inside zapret2 root