public void Reset(IEnumerable <string> ips) { PermBannedIPs.Reset(ips); }
/// <summary> /// Tests whether a host address is allowed. /// Both permanent and temporary rules are checked. /// </summary> /// <param name="hostAddress">Host address (IP).</param> /// <returns>True if the host is allowed access (not banned).</returns> public bool IsAllowed(string hostAddress) { return(!PermBannedIPs.Contains(hostAddress) && !TempBannedIPs.Contains(hostAddress)); }