Добавлены новые методы для блокировки IP-адресов с указанием причины и времени действия.

This commit is contained in:
Vigers Ray 2026-01-17 23:39:24 +01:00
parent 7aac95145c
commit ef24107a24

View file

@ -1,3 +1,4 @@
using System;
using System.Net;
namespace Content.Shared.Connection.IPBlocking;
@ -8,6 +9,10 @@ public interface IIPBlockingSystem
bool IsBlocked(IPAddress ip);
void BlockIP(IPAddress ip, TimeSpan duration, string reason);
void BlockIP(IPAddress ip, string reason);
bool CheckAndBlockSuspiciousLength(IPAddress ip, int length, string context);
bool CheckAndBlockUnhandledMessageRate(IPAddress ip, string messageType);