Skip to content

Commit

Permalink
使用标准化字符串执行查询操作 #849
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu committed Jan 13, 2025
1 parent 3f0710a commit 216da92
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ private void handleInfo(Context ctx) throws SQLException {


private void handleBanHistory(Context ctx) throws SQLException {
String ip = IPAddressUtil.getIPAddress(ctx.pathParam("ip")).toString();
String ip = IPAddressUtil.getIPAddress(ctx.pathParam("ip")).toNormalizedString();
Pageable pageable = new Pageable(ctx);
var builder = historyDao.queryBuilder()
.orderBy("banAt", false);
Expand All @@ -168,7 +168,7 @@ private void handleBanHistory(Context ctx) throws SQLException {

private void handleAccessHistory(Context ctx) throws SQLException {
activeMonitoringModule.flush();
String ip = IPAddressUtil.getIPAddress(ctx.pathParam("ip")).toString();
String ip = IPAddressUtil.getIPAddress(ctx.pathParam("ip")).toNormalizedString();
Pageable pageable = new Pageable(ctx);
var builder = peerRecordDao.queryBuilder()
.orderBy("lastTimeSeen", false);
Expand Down

0 comments on commit 216da92

Please sign in to comment.