Skip to content

Commit

Permalink
Do not convert netip.Prefix to string
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Jan 15, 2025
1 parent 2e91570 commit 5fc10f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/mmdbinspect/mmdbinspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (

// RecordForNetwork holds a network and the corresponding record.
type RecordForNetwork struct {
Network string
Network netip.Prefix
Record any
}

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

found = append(found, RecordForNetwork{res.Prefix().String(), record})
found = append(found, RecordForNetwork{res.Prefix(), record})
}

return found, nil
Expand Down

0 comments on commit 5fc10f3

Please sign in to comment.