bool IsLanIp(string& ip)
{
    if(ip.substr(0,3) == "10." || ip.substr(0,4) == "172." || ip.substr(0,4) == "192.")
    {
        return true;
    } else {
        return false;
    }    
}

 

相关文章:

  • 2021-12-26
  • 2021-09-04
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2021-12-26
猜你喜欢
  • 2022-12-23
  • 2021-04-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
  • 2021-12-26
  • 2021-12-26
相关资源
相似解决方案