From c183c59b307bc126b60a9705e71991d780a8b01b Mon Sep 17 00:00:00 2001 From: goodvin Date: Sat, 15 Nov 2025 13:29:22 +0300 Subject: [PATCH] Add flushing of ipset after config generation --- scripts/deploy-to-gateway.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/deploy-to-gateway.sh b/scripts/deploy-to-gateway.sh index ae39514..6099ba4 100644 --- a/scripts/deploy-to-gateway.sh +++ b/scripts/deploy-to-gateway.sh @@ -40,6 +40,10 @@ if ! docker ps | grep -q "$DOCKER_CONTAINER"; then exit 1 fi +# Очистка IPSET +echo "Flushing ipset bbrkn..." +ipset flush bbrkn + echo "Deployment completed successfully" DOMAIN_COUNT=$(grep -c '^ipset=' "$TARGET_DIR/$(basename "$IPSET_CONF")" || echo "0") echo "Applied configuration for $DOMAIN_COUNT domains"