修复isMatchedIp的参数判断产生空指针的问题

This commit is contained in:
RuoYi 2023-02-22 10:30:26 +08:00
parent 2fca104f9f
commit dd4ebaf9da

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