From a6b65f851235d9581a4bfbf3d635f6ea6a98f246 Mon Sep 17 00:00:00 2001 From: IPQualityScore <50187766+IPQualityScore@users.noreply.github.com> Date: Wed, 23 Oct 2024 09:53:13 -0400 Subject: [PATCH] v1.0.4 - Add zipcode and other field support to the reader. --- FileReader.go | 4 ++++ IPQSRecord.go | 2 ++ 2 files changed, 6 insertions(+) diff --git a/FileReader.go b/FileReader.go index 453cb0a..4b52017 100644 --- a/FileReader.go +++ b/FileReader.go @@ -205,6 +205,10 @@ func parseRecord(record *IPQSRecord, raw []byte, file *FileReader) (*IPQSRecord, record.Organization = value; case "Timezone": record.Timezone = value; + case "Zipcode": + record.Zipcode = value; + case "Hostname": + record.Hostname = value; } } diff --git a/IPQSRecord.go b/IPQSRecord.go index d864c22..01d2ffe 100644 --- a/IPQSRecord.go +++ b/IPQSRecord.go @@ -24,6 +24,8 @@ type IPQSRecord struct { Region string ISP string Organization string + Zipcode string + Hostname string ASN int Timezone string Latitude float32