Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geoip rule gives completely wrong country code #839

Open
danielniccoli opened this issue Mar 24, 2013 · 0 comments
Open

Geoip rule gives completely wrong country code #839

danielniccoli opened this issue Mar 24, 2013 · 0 comments
Labels

Comments

@danielniccoli
Copy link
Contributor

Original author: mehmetal...@gmail.com (June 06, 2011 22:51:33)

What steps will reproduce the problem?

  1. Try to use Geoip rule
    2.
    3.

What is the expected output? What do you see instead?
expect:
root@localserv:~# geoiplookup 127.0.0.1
GeoIP Country Edition: IP Address not found
output:
rule_geoip.c:0112 match): Rule geoip did not match 'AU' ip: '16777343'

16777343 as Integer IP

Decimal IP = 1.0.0.127
Octal IP = 000000001.000000000.000000000.000000177
Hex IP = 0x100007f
Integer IP = 16777343
Host Name =

root@localserv:~# geoiplookup 1.0.0.127
GeoIP Country Edition: AU, Australia

What version of the product are you using? On what operating system?
Ubuntu 11.04
Cherokee 1.2.98
tried libgeoip-dev (1.4.4.dfsg-1) and (1.4.7+dfsg-2)
./configure --enable-backtraces --enable-trace

Please provide any additional information below.

Original issue: http://code.google.com/p/cherokee/issues/detail?id=1216

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant