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));
     }
 }
Exemple #2
0
 protected string GetIpArea(string ip)
 {
     return(IPUtil.GetIpArea(ip));
 }