Esempio n. 1
0
        public bool ValidateIpAddress(string ipAddress)
        {
            if (string.IsNullOrWhiteSpace(ipAddress))
            {
                return(false);
            }

            return(_validator.ValidateIpAddress(ipAddress));
        }
Esempio n. 2
0
        public bool ValidateIpAddress(string ipAddress)
        {
            var ipAddressStorage = ipAddress.Split('.');

            if (IpAddressTargetsEntireNetworkSegment(ipAddressStorage))
            {
                return(false);
            }

            return(_validator.ValidateIpAddress(ipAddress));
        }
Esempio n. 3
0
        public bool ValidateIpAddress(string ipAddress)
        {
            var ipAddressStorage = ipAddress.Split('.');

            if (IpAddressTargetsBroadCastNetwork(ipAddressStorage))
            {
                return(false);
            }

            return(_validator.ValidateIpAddress(ipAddress));
        }