Closed bypper closed 7 months ago
This is expected behavior. From 2.10.0 Release Notes: "Remove Legacy GeoIP from Packages and Dockerfiles/Images"
This is expected behavior. From 2.10.0 Release Notes: "Remove Legacy GeoIP from Packages and Dockerfiles/Images"
It's not Legacy.
newGeoIP2DB("CityDB", "/tmp/geoip/GeoLite2-City.mmdb")
newGeoIP2DB("CountryDB", "/tmp/geoip/GeoIP2-Country.mmdb")
newGeoIP2DB("ISPDB", "/tmp/geoip/GeoIP2-ISP.mmdb")
I can reproduce this. I'm creating a fix for it, and it will be in 2.10.1. I actually don't know how this ever actually worked, it must be a fluke, because the GeoIP lookup code is fine but the code was never correct for accessing the variables from Lua.
GEOIP2DB for City and Country info not working in the last version (2.10) of Docker image.
Steps to reproduce the behavior:
export WFORCE_CONFIG_FILE=/wforce/wforce.conf;export WFORCE_VERBOSE=1;export WFORCE_HTTP_PASSWORD=xxxxx;docker run --restart unless-stopped -d --name miwforce -p 127.0.0.1:8084:8084 -v /bypper/docker/miwforce:/wforce -v /bypper/etc/geoip:/tmp/geoip -v /bypper/docker/resolv.conf:/etc/resolv.conf -e WFORCE_HTTP_PASSWORD -e WFORCE_VERBOSE -e WFORCE_CONFIG_FILE powerdns/wforce:v2.10.0
Down image 2.10 version:
$ docker container miwforce && docker container prune
Up image 2.8 version:
export WFORCE_CONFIG_FILE=/wforce/wforce.conf;export WFORCE_VERBOSE=1;export WFORCE_HTTP_PASSWORD=xxxxx;docker run --restart unless-stopped -d --name miwforce -p 127.0.0.1:8084:8084 -v /bypper/docker/miwforce:/wforce -v /bypper/etc/geoip:/tmp/geoip -v /bypper/docker/resolv.conf:/etc/resolv.conf -e WFORCE_HTTP_PASSWORD -e WFORCE_VERBOSE -e WFORCE_CONFIG_FILE powerdns/wforce:v2.8.0
Expected behavior Country info (Code, Country...) only appears with 2.8 version Docker image, not with 2.10.
OS (please complete the following information):