oschwald / maxminddb-golang

MaxMind DB Reader for Go
ISC License
615 stars 101 forks source link

Added methods capable of returning the netmask #48

Closed antoniovl closed 5 years ago

antoniovl commented 6 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 5 years ago

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