DigitaleGesellschaft / Anonip

Anonip is a tool to anonymize IP-addresses in log-files.
Other
75 stars 17 forks source link

fix: fix ipv6 containing uppercase letters #70

Closed open-dynaMIX closed 2 years ago

open-dynaMIX commented 2 years ago

If the column doesn't only contain the ip address, we use urlparse() for fetching it. This lead to lowecasing the ip address and hence being unable to replace it in the log line. This commit fixes this by using urlparse()._hostinfo[0].

Related to #65