Skip to content

Commit

Permalink
Merge pull request #1577 from p-l-/enh-weblogs
Browse files Browse the repository at this point in the history
Passive: support X-Forwarded-For headers in web logs
  • Loading branch information
p-l- committed Sep 20, 2023
2 parents 5ab8fcf + b7cbd10 commit 9ba414e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ivre/parser/weblog.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from ivre.utils import LOGGER

LINE_RE = re.compile(
r'^(?P<addr>[^ ]*) (?P<identity>[^ ]*) (?P<username>[^ ]*) \[(?P<datetime>[^]]*)\] "(?P<request>[^"]*)" (?P<status>[^ ]*) (?P<size>[^ ]*) "(?P<referer>[^"]*)" "(?P<useragent>[^"]*)"\r?$'
r'^(?P<addr>[^ ]*) (?P<identity>[^ ]*) (?P<username>[^ ]*) \[(?P<datetime>[^]]*)\] "(?P<request>[^"]*)" (?P<status>[^ ]*) (?P<size>[^ ]*) "(?P<referer>[^"]*)" "(?P<useragent>[^"]*)"(?: "(?P<x_forwarded_for>[^"]*)")?\r?$'
)


Expand Down

0 comments on commit 9ba414e

Please sign in to comment.