From 409e97294ff93b097ac5ffcb21023bbd9108013c Mon Sep 17 00:00:00 2001 From: StressOzz <131419324+StressOzz@users.noreply.github.com> Date: Sat, 12 Sep 2026 00:03:39 +0500 Subject: [PATCH] Improve tgws removal process in Zapret-Manager.sh Enhanced cleanup process for tgws by removing additional related files and stopping processes. --- Zapret-Manager.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Zapret-Manager.sh b/Zapret-Manager.sh index 3c87530..bf6425e 100644 --- a/Zapret-Manager.sh +++ b/Zapret-Manager.sh @@ -1177,7 +1177,11 @@ remove_TGWS() { /etc/init.d/tgws stop >/dev/null 2>&1 $DELETE tgws >/dev/null 2>&1 - rm -rf /etc/tgws /etc/config/tgws + +killall tgws 2>/dev/null; killall stgws 2>/dev/null +rm -rf /etc/*tgws* /var/lib/*tgws* /var/lock/*tgws*.lock /etc/rc.d/*tgws* /etc/init.d/*tgws* /usr/sbin/*tgws* +nft delete table inet stgws >/dev/null 2>&1 +nft delete table inet tgws >/dev/null 2>&1 echo -e "sTGWS ${GREEN}удалён!${NC}\n" PAUSE