protected string GetIpAddress(string ip) { if (string.IsNullOrEmpty(ip)) { return("无效的IP地址"); } if (ip.Split(new char[] { '*' }, StringSplitOptions.RemoveEmptyEntries).Length == 1) { return(IPUtil.GetIpArea(ip.Replace('*', '1'))); } else { return(IPUtil.GetIpArea(ip)); } }
protected string GetIpArea(string ip) { return(IPUtil.GetIpArea(ip)); }