Skip to content
This repository has been archived by the owner on Apr 5, 2018. It is now read-only.

Commit

Permalink
Add GEOIP_DOMAIN_EDITION support ( Boris Zentner )
Browse files Browse the repository at this point in the history
  • Loading branch information
borisz committed Mar 24, 2009
1 parent e770f07 commit 4decc75
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changes
@@ -1,3 +1,4 @@
- Add GEOIP_DOMAIN_EDITION support ( Boris Zentner )
1.2.6 Sep 11th 2008
- GEOIP_METRO_CODE replace the depreciated GEOIP_DMA_CODE ( Boris Zentner )
1.2.5 Aug 13th 2008
Expand Down
11 changes: 11 additions & 0 deletions mod_geoip.c
Expand Up @@ -581,6 +581,17 @@ geoip_header_parser(request_rec * r)
}
}
break;
case GEOIP_DOMAIN_EDITION:
orgorisp = GeoIP_name_by_addr(cfg->gips[i], ipaddr);
if (orgorisp != NULL) {
if (cfg->GeoIPOutput & GEOIP_NOTES) {
apr_table_setn(r->notes, "GEOIP_DOMAIN", orgorisp);
}
if (cfg->GeoIPOutput & GEOIP_ENV) {
apr_table_setn(r->subprocess_env, "GEOIP_DOMAIN", orgorisp);
}
}
break;
}
}

Expand Down

0 comments on commit 4decc75

Please sign in to comment.