示例#1
0
        /// <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);
        }
示例#2
0
        /// <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);
        }
示例#3
0
        /// <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);
        }
示例#4
0
        /// <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);
        }