]> git.ipfire.org Git - thirdparty/AWStats.git/commit
Clean up geoip2 and geoip2 city modules 131/head
authormanuel <manuel@mausz.at>
Fri, 26 Apr 2019 11:39:57 +0000 (13:39 +0200)
committermanuel <manuel@mausz.at>
Fri, 26 Apr 2019 11:39:57 +0000 (13:39 +0200)
commit40e434b1611353553bb0a2683fe73b3e0438c9c3
treebbca3436109c851fdb2bf46071b00e9ffcf3757e
parent0dd9142dcd16c74648979d84750ce6aaade5a09c
Clean up geoip2 and geoip2 city modules

* Correctly convert dns names to ip4 and ip6 address using getaddrinfo
  (fixes #120, #121, obsoletes #115)
* Only lookup if the IP is of type public (fixes #122)
  and catch further lookup errors (obsoletes #123)
* Store and display the GeoIP City output HTML escaped (fixes #127)
* Code to perform and cache the actual lookup is consolidated
* General code improvement and readability
wwwroot/cgi-bin/plugins/geoip2.pm
wwwroot/cgi-bin/plugins/geoip2_city.pm