Skip to content

Commit 5fc10f3

Browse files
committed
Do not convert netip.Prefix to string
1 parent 2e91570 commit 5fc10f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/mmdbinspect/mmdbinspect.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616

1717
// RecordForNetwork holds a network and the corresponding record.
1818
type RecordForNetwork struct {
19-
Network string
19+
Network netip.Prefix
2020
Record any
2121
}
2222

@@ -80,7 +80,7 @@ func RecordsForNetwork(reader maxminddb.Reader, includeAliasedNetworks bool, may
8080
return nil, fmt.Errorf("could not get next network: %w", err)
8181
}
8282

83-
found = append(found, RecordForNetwork{res.Prefix().String(), record})
83+
found = append(found, RecordForNetwork{res.Prefix(), record})
8484
}
8585

8686
return found, nil

0 commit comments

Comments
 (0)