Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eterban
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eterban
Commits
2ad32cc8
Commit
2ad32cc8
authored
Jul 22, 2026
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gateway: remove autoban state atomically
parent
4015c0d0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
autoban_manager.py
gateway/usr/share/eterban/autoban_manager.py
+5
-3
No files found.
gateway/usr/share/eterban/autoban_manager.py
View file @
2ad32cc8
...
@@ -144,11 +144,13 @@ class AutoBanManager:
...
@@ -144,11 +144,13 @@ class AutoBanManager:
try
:
try
:
# Удаляем из расписания и постоянных
# Удаляем из расписания и постоянных
self
.
r
.
zrem
(
self
.
SCHEDULE_KEY
,
ip
)
pipeline
=
self
.
r
.
pipeline
(
transaction
=
True
)
self
.
r
.
srem
(
self
.
PERMANENT_KEY
,
ip
)
pipeline
.
zrem
(
self
.
SCHEDULE_KEY
,
ip
)
pipeline
.
srem
(
self
.
PERMANENT_KEY
,
ip
)
if
reset_counter
:
if
reset_counter
:
self
.
r
.
delete
(
f
"{self.META_PREFIX}{ip}"
)
pipeline
.
delete
(
f
"{self.META_PREFIX}{ip}"
)
pipeline
.
execute
()
except
Exception
as
e
:
except
Exception
as
e
:
log
.
error
(
f
"AutoBanManager.on_unban error: {e}"
)
log
.
error
(
f
"AutoBanManager.on_unban error: {e}"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment