Compare commits

..

No commits in common. "439f0b367116ea96b9b31f7433ecaa8fd364a1e3" and "316d22aecd52e17e352b97b1c48854966ec7c3e3" have entirely different histories.

2 changed files with 4 additions and 4 deletions

View file

@ -95,10 +95,10 @@ public final class AnonMap
} }
// Check it does not already exist. // Check it does not already exist.
if ((this.unmap.get(result) == null) && (this.map.get(result) == null)) if ((this.map.get(result) == null) && (this.unmap.get(result) == null))
{ {
this.map.put(ip, result); this.map.put(ip, result);
this.unmap.put(result, ip); this.unmap.put(ip, result);
ended = true; ended = true;
} }
} }

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2021-2024 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2021 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of Logar, simple tool to manage http log files. * This file is part of Logar, simple tool to manage http log files.
* *
@ -39,7 +39,7 @@ public final class AccessLogParser implements LineParser
private static Logger logger = LoggerFactory.getLogger(AccessLogParser.class); private static Logger logger = LoggerFactory.getLogger(AccessLogParser.class);
public static Pattern COMBINED_ACCESSLOG_LINE_PATTERN = Pattern.compile( public static Pattern COMBINED_ACCESSLOG_LINE_PATTERN = Pattern.compile(
"^(?<remoteAddress>[a-zA-F0-9\\\\:\\\\.]+) - (?<remoteUser>[^\\[]+) \\[(?<datetime>[^\\]]+)\\] \"(?<request>([^\"]|\\\")*)\" (?<status>\\d+) (?<bodyBytesSent>\\d+) \"(?<referer>([^\"]|\\\")*)\" \"(?<userAgent>([^\"]|\\\")*)\".*$"); "^(?<remoteAddress>[a-zA-F0-9\\\\:\\\\.]+) - (?<remoteUser>[^\\[]+) \\[(?<datetime>[^\\]]+)\\] \"(?<request>[^\"]*)\" (?<status>\\d+) (?<bodyBytesSent>\\d+) \"(?<referer>[^\"]*)\" \"(?<userAgent>[^\"]*)\".*$");
/** /**
* Instantiates a new log parser. * Instantiates a new log parser.