[FEAT] Swag-dashboard Fail2ban return current not total bans

Đang mở
#1,170 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
backend

Hướng nghiên cứu

Start by locating the Swag-Dashboard code that builds the Fail2ban table and API response. Check how it distinguishes active bans from expired bans; the issue names no files or tests, so first trace the dashboard and API entry points. Done means the dashboard reports currently banned IPs, with the API returning that count or exposing a separate current-bans value.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement
Is this a new feature request?
  • I have searched the existing issues
Name of mod

Swag-Dashboard

Wanted change

Have the dashboard, and API, return only currently banned IPs in the Fail2ban table instead of total bans (including expired bans). Alternatively, add a separate column and ability for the API to only return current bans.

Reason for change

The SWAG Dashboard's banned statistic can include IP addresses that were previously banned but are no longer actively banned. As a result, the dashboard can display a higher ban count than the number of IP addresses currently blocked by Fail2ban. This makes looking at the dashboard to assess whether any action is needed to potentially unban IPs inefficient and confusing.

Proposed code change

No response

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
1.5k
Fork
330
Merge trung bình
1 giờ 11 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của linuxserver/docker-mods

Tất cả issue của linuxserver/docker-mods

Issue tương tự

Thêm issue về Backend & API Design

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.