mirror of https://gitee.com/y_project/RuoYi.git
addr防止空地址校验
parent
da5cca0b90
commit
ff878564e4
|
@ -11,7 +11,6 @@
|
|||
<link href="../static/css/main/style.min862f.css" th:href="@{/css/main/style.min862f.css}" rel="stylesheet"/>
|
||||
</head>
|
||||
|
||||
<body class="gray-bg">
|
||||
<body class="gray-bg">
|
||||
<div class="wrapper wrapper-content">
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue