From c9c01ad332a22cb190810f437d1bc17306a9982d Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 21 Apr 2024 18:11:22 -0500 Subject: add Clear() --- src/slskd/Core/Blacklist.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/slskd/Core/Blacklist.cs b/src/slskd/Core/Blacklist.cs index 857b9002..f9504c52 100644 --- a/src/slskd/Core/Blacklist.cs +++ b/src/slskd/Core/Blacklist.cs @@ -153,6 +153,11 @@ public class Blacklist throw new FormatException($"Failed to auto-detect blacklist format. Only CIDR, P2P and DAT formats are supported"); } + /// + /// Clears the contents of the Blacklist. + /// + public virtual void Clear() => Cache.Clear(); + /// /// Loads the contents of the specified into the Blacklist. /// -- cgit v1.2.3