!304 修复isMatchedIp的参数判断产生NullPointerException的问题

Merge pull request !304 from wangfeiyu/dev20230222
This commit is contained in:
若依
2023-02-22 02:23:46 +00:00
committed by Gitee

View File

@@ -357,7 +357,7 @@ public class IpUtils
*/ */
public static boolean isMatchedIp(String filter, String ip) public static boolean isMatchedIp(String filter, String ip)
{ {
if (StringUtils.isEmpty(filter) && StringUtils.isEmpty(ip)) if (StringUtils.isEmpty(filter) || StringUtils.isEmpty(ip))
{ {
return false; return false;
} }