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

Aberta
#1,170 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
55/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Domínio
backend

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
Sem dados de linguagem
Estrelas
1.5k
Forks
330
Merge médio
1h 11min
PRs com merge (30d)
2

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de linuxserver/docker-mods

Todas as issues de linuxserver/docker-mods

Issues semelhantes

Mais issues de Backend & API Design

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.