Skip to content

add support for asn network range #129

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

the-siegfried
Copy link

  • Updates the ASN type to support the network range field.
  • Refactors the ASN method to utilise the LookupNetwork method of the mmdbReader in order to capture the network address and subnet.

See Issue: #128

- Updates the ASN type to support the network range field.
- Refactors the ASN method to utilise the LookupNetwork method of the mmdbReader in order to capture the network address and subnet.

See Issue: oschwald#128
@oschwald
Copy link
Owner

oschwald commented Apr 3, 2025

If we were to add this, we would add it to all the lookup types and make the value a netip.Prefix rather than a string. I would probably hold off doing that until we upgrade to maxminddb-golang/v2 though.

In the meantime, it is easy to use the models in this package with github.com/oschwald/maxmind-golang or github.com/oschwald/maxmind-golang/v2. I would suggest doing that for now.

@the-siegfried
Copy link
Author

Thanks for the heads up @oschwald. I'll give that a go.

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.

2 participants