]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commit
GeoIP: Add lookup function for convenience geoip
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 9 Nov 2017 22:28:40 +0000 (22:28 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 9 Nov 2017 22:28:40 +0000 (22:28 +0000)
commit0d2368ceb6bbd9389cb612f77930e3e2f60d63bd
treec70534ea2acfad05ddd2b46ee6afabb16d23f559
parent6377e3610a4516d0ea972791577885a94e13177d
GeoIP: Add lookup function for convenience

Instead of opening the database again for each lookup,
we will read it into memory on first use and every lookup
after that will be coming from cache.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/cfgroot/geoip-functions.pl
html/cgi-bin/country.cgi
html/cgi-bin/logs.cgi/firewalllog.dat
html/cgi-bin/logs.cgi/firewalllogcountry.dat
html/cgi-bin/logs.cgi/firewalllogip.dat
html/cgi-bin/logs.cgi/showrequestfromcountry.dat