File tree 1 file changed +5
-3
lines changed 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,9 @@ func SkipAliasedNetworks(networks *Networks) {
44
44
// the database.
45
45
//
46
46
// Please note that a MaxMind DB may map IPv4 networks into several locations
47
- // in an IPv6 database. This iterator will iterate over all of these
48
- // locations separately.
47
+ // in an IPv6 database. This iterator will iterate over all of these locations
48
+ // separately. To only iterate over the IPv4 networks once, use the
49
+ // SkipAliasedNetworks option.
49
50
func (r * Reader ) Networks (options ... NetworksOption ) * Networks {
50
51
var networks * Networks
51
52
if r .Metadata .IPVersion == 6 {
@@ -62,7 +63,8 @@ func (r *Reader) Networks(options ...NetworksOption) *Networks {
62
63
//
63
64
// Please note that a MaxMind DB may map IPv4 networks into several locations
64
65
// in an IPv6 database. This iterator will iterate over all of these locations
65
- // separately.
66
+ // separately. To only iterate over the IPv4 networks once, use the
67
+ // SkipAliasedNetworks option.
66
68
//
67
69
// If the provided network is contained within a network in the database, the
68
70
// iterator will iterate over exactly one network, the containing network.
You can’t perform that action at this time.
0 commit comments