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

Add IPv6 support to country indexer #32

Closed
wants to merge 3 commits into from

Conversation

klaus3000
Copy link

No description provided.

@jelu jelu self-assigned this Apr 20, 2016
@@ -54,6 +54,7 @@
#endif


#include "config.h"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this needed?

Copy link
Author

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.

@jelu jelu added this to the 2.0.0rc1 milestone Apr 26, 2016
static char *ipstr;
static char unknown[20] = "__";
static char *unknown = "??";
Copy link
Member

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 ?

Copy link
Author

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.

Copy link
Member

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.

@jelu
Copy link
Member

jelu commented Apr 27, 2016

Needs a rebase also.

@jelu
Copy link
Member

jelu commented May 2, 2016

Going to fix and rebase this from my fork.

@jelu jelu closed this May 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants