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

Merge pull request !304 from wangfeiyu/dev20230222
pull/305/head
若依 2 years ago committed by Gitee
commit c42b4cad02
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -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…
Cancel
Save