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

Merge pull request !304 from wangfeiyu/dev20230222
product
若依 2023-02-22 02:23:46 +00:00 committed by Gitee
commit c42b4cad02
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}