修复isMatchedIp的参数判断产生空指针的问题
This commit is contained in:
parent
2fca104f9f
commit
dd4ebaf9da
@ -357,7 +357,7 @@ public class IpUtils
|
||||
*/
|
||||
public static boolean isMatchedIp(String filter, String ip)
|
||||
{
|
||||
if (StringUtils.isEmpty(filter) && StringUtils.isEmpty(ip))
|
||||
if (StringUtils.isEmpty(filter) || StringUtils.isEmpty(ip))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user