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

mod_mirrorbrain does not handle ipv6 dat mod_geoip #106

Closed
poeml opened this issue Jun 5, 2015 · 0 comments
Closed

mod_mirrorbrain does not handle ipv6 dat mod_geoip #106

poeml opened this issue Jun 5, 2015 · 0 comments

Comments

@poeml
Copy link
Owner

poeml commented Jun 5, 2015

                                                                             [          ]

Issue migrated (2015-06-05) from old issue tracker http://mirrorbrain.org/issues/issue106

Title    mod_mirrorbrain does not handle ipv6 dat mod_geoip
 Priority   bug            Status       resolved
Superseder                Nosy List     poeml, toma
Assigned To poeml         Keywords

msg369 (view) Author: toma Date: 2012-03-30.19:54:33

I'm now using mod_geoip 1.2.7. Unfortunately the mod_geoip developers seem to
have decided to store data in _V6 variables. Like:


apr_table_setn(r->notes, "GEOIP_CONTINENT_CODE_V6", continent_code);
apr_table_setn(r->notes, "GEOIP_COUNTRY_CODE_V6", country_code);

apr_table_setn(r->notes, "GEOIP_COUNTRY_NAME_V6", country_name);

mod_mirrorbrain seem to only look at the non V6 data. See:

  country_code = apr_table_get(r->subprocess_env, "GEOIP_COUNTRY_CODE");
  country_name = apr_table_get(r->subprocess_env, "GEOIP_COUNTRY_NAME");
  continent_code = apr_table_get(r->subprocess_env, "GEOIP_CONTINENT_CODE");

Maybe first read the V6 data and if empty read the non V6 data?

msg371 (view) Author: poeml Date: 2012-03-31.21:02:28

Saw your bug just now - exactly the same did I think, and I committed an
according patch a short while ago :-)

msg378 (view) Author: poeml Date: 2012-04-14.21:45:10

Works as expected! Will be in the next release.

History
         Date         User  Action            Args
2012-04-14 21:45:10 poeml set    status: testing -> resolved
                                   messages: + msg378
                                   status: unread -> testing
2012-03-31 21:02:28 poeml set    assignedto: poeml
                                   messages: + msg371
                                   nosy: + poeml
2012-03-30 19:54:33 toma  create

(end of migrated issue)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant