Commit ff878564 by RuoYi

addr防止空地址校验

parent da5cca0b
......@@ -12,7 +12,6 @@
</head>
<body class="gray-bg">
<body class="gray-bg">
<div class="wrapper wrapper-content">
<div class="row">
......
......@@ -51,6 +51,10 @@ public class IpUtils
private static boolean internalIp(byte[] addr)
{
if (StringUtils.isNull(addr) || addr.length < 2)
{
return true;
}
final byte b0 = addr[0];
final byte b1 = addr[1];
// 10.x.x.x/8
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment