We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30a393a commit 5e7ecc7Copy full SHA for 5e7ecc7
traverse.go
@@ -43,8 +43,11 @@ func (r *Reader) Networks() *Networks {
43
// in the database which are contained in a given network.
44
//
45
// Please note that a MaxMind DB may map IPv4 networks into several locations
46
-// in an IPv6 database. This iterator will iterate over all of these
47
-// locations separately.
+// in an IPv6 database. This iterator will iterate over all of these locations
+// separately.
48
+//
49
+// If the provided network is contained within a network in the database, the
50
+// iterator will iterate over exactly one network, the containing network.
51
func (r *Reader) NetworksWithin(network *net.IPNet) *Networks {
52
ip := network.IP
53
prefixLength, _ := network.Mask.Size()
0 commit comments