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

feat: add support to for geoipLookup (via build tag) #236

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

woehrl01
Copy link

@woehrl01 woehrl01 commented Oct 13, 2023

Instructions:

  • Place the geoip.mmdb file in the root folder.
  • Build the project specifying either GEOIP=CITY or GEOIP=COUNTRY via environment variable based on database preference.

Dependencies:

To-Do:

  • Update README with documentation.
  • Once upstream dependency merges, adjust module references accordingly.

Related to issue #234

@woehrl01 woehrl01 changed the title feat: add support to for geoipLookip (via build tag) feat: add support to for geoipLookup (via build tag) Oct 13, 2023
@woehrl01 woehrl01 marked this pull request as ready for review November 10, 2023 19:30
@woehrl01 woehrl01 marked this pull request as draft November 10, 2023 19:44
@woehrl01
Copy link
Author

woehrl01 commented Nov 10, 2023

Needs some adaption in upstream, as for this project, "IsPrivate" is not defined for tinygo, see: https://tinygo.org/docs/reference/lang-support/stdlib/#netnetip

see: corazawaf/coraza-geoip#2

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.

1 participant