-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add IPv6 support to country indexer #32
Conversation
@@ -54,6 +54,7 @@ | |||
#endif | |||
|
|||
|
|||
#include "config.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because some lines below you have:
#if HAVE_LIBGEOIP
#include "country_index.h"
But HAVE_LIBGEOIP is defined in config.h and not yet included.
static char *ipstr; | ||
static char unknown[20] = "__"; | ||
static char *unknown = "??"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing the format for unknown IP addresses will break backwards compatibility, is it important for you to know if its an unknown v4 or v6 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is interesting to know. And, as config.h was not included yet, I think nobody used this feature except us. But if you like backwardscompatibility I do not mind changing it back to the old version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hehe okay, we'll leave it.
Needs a rebase also. |
Going to fix and rebase this from my fork. |
No description provided.