/// <summary> /// Remove an Ip address range from the blacklist. /// </summary> /// <param name="pIp1">Start Ip to remove</param> /// <param name="pIp2">End Ip to remove</param> public void RemoveFromBlacklist(IPAddress pIp1, IPAddress pIp2) { IPRange ipr = new IPRange(pIp1, pIp2); _blacklist.Remove(ipr); }
/// <summary> /// Remove an Ip address range from the whitelist. /// </summary> /// <param name="pIp1">Start Ip to add</param> /// <param name="pIp2">End Ip to add</param> public void RemoveFromWhitelist(IPAddress pIp1, IPAddress pIp2) { IPRange ipr = new IPRange(pIp1, pIp2); _whitelist.Remove(ipr); }
/// <summary> /// Add an Ip addresses range to the blacklist. /// </summary> /// <param name="pIp1">Start Ip to add</param> /// <param name="pIp2">End Ip to add</param> public void AddToBlacklist(IPAddress pIp1, IPAddress pIp2) { IPRange ipr = new IPRange(pIp1, pIp2); _blacklist.Add(ipr); }
/// <summary> /// Add an Ip addresses range to the whitelist. /// </summary> /// <param name="pIp1">Start Ip to add</param> /// <param name="pIp2">End Ip to add</param> public void AddToWhitelist(IPAddress pIp1, IPAddress pIp2) { IPRange ipr = new IPRange(pIp1, pIp2); _whitelist.Add(ipr); }