mirror of
https://github.com/yangzongzhuan/RuoYi-Cloud.git
synced 2025-11-29 02:01:20 +08:00
在方法isMatchedIp的参数中,当filter为null而ip非null/空时,报filter为null异常。把判断条件由&&改为||解决此bug。
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user