mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve wall filter
This commit is contained in:
@@ -46,11 +46,11 @@ public abstract class WallProvider {
|
||||
|
||||
private int MAX_SQL_LENGTH = 2048; // 1k
|
||||
|
||||
private int whiteSqlMaxSize = 500; // 1k
|
||||
private int whiteSqlMaxSize = 500; // 1k
|
||||
|
||||
private LRUCache<String, WallSqlStat> blackList;
|
||||
|
||||
private int blackSqlMaxSize = 500; // 1k
|
||||
private int blackSqlMaxSize = 100; // 1k
|
||||
|
||||
protected final WallConfig config;
|
||||
|
||||
@@ -635,8 +635,8 @@ public abstract class WallProvider {
|
||||
}
|
||||
info.put("functions", functions);
|
||||
}
|
||||
//info.put("whiteList", this.getWhiteList());
|
||||
//info.put("blackList", this.getBlackList());
|
||||
// info.put("whiteList", this.getWhiteList());
|
||||
info.put("blackList", this.getBlackList());
|
||||
return info;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user