oschwald / maxminddb-golang

MaxMind DB Reader for Go
ISC License
576 stars 99 forks source link

Added methods capable of returning the netmask #48

Closed antoniovl closed 4 years ago

antoniovl commented 5 years ago

Two methods were added to find the netmask of an IP address, both are based in the findAddressInTree() method found on the Reader struct.

Both methods are suited for NS1's needs but we think they may be useful.

oschwald commented 4 years ago

59 accomplishes this same goal in a bit different way. I am closing in favor of that.