We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
public static boolean isIntranet(String url) { Pattern reg = Pattern.compile("^(127\\.0\\.0\\.1)|(localhost)|(10\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})|(172\\.((1[6-9])|(2\\d)|(3[01]))\\.\\d{1,3}\\.\\d{1,3})|(192\\.168\\.\\d{1,3}\\.\\d{1,3})$"); Matcher match = reg.matcher(url); boolean a = match.find(); return a; }
127.0.0.1匹配不到? 同时也可以ip地址转换绕过 比如127.1 或者十进制 十六进制
The text was updated successfully, but these errors were encountered:
isIntranet方法只作判断内网ip,关于进制绕过下版本会更新
Sorry, something went wrong.
好的 辛苦
No branches or pull requests
127.0.0.1匹配不到?
同时也可以ip地址转换绕过 比如127.1 或者十进制 十六进制
The text was updated successfully, but these errors were encountered: