From 612b37386ce24bf1ab903c32c5080ccacc9f2a81 Mon Sep 17 00:00:00 2001 From: postindustria-code Date: Wed, 11 Mar 2026 11:10:46 +0100 Subject: [PATCH 1/2] Update IPLocationService type, add 51Degrees support --- adcom1/ip_location_service.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/adcom1/ip_location_service.go b/adcom1/ip_location_service.go index 395ec1b..f23c23a 100644 --- a/adcom1/ip_location_service.go +++ b/adcom1/ip_location_service.go @@ -1,12 +1,14 @@ package adcom1 // IPLocationService represents services and/or vendors used for resolving IP addresses to geolocations. -type IPLocationService int8 +type IPLocationService int16 // Services and/or vendors used for resolving IP addresses to geolocations. const ( - LocationServiceIP2Location IPLocationService = 1 // ip2location - LocationServiceNeustar IPLocationService = 2 // Neustar (Quova) - LocationServiceMaxMind IPLocationService = 3 // MaxMind - LocationServiceNetAcuity IPLocationService = 4 // NetAcuity (Digital Element) + LocationServiceIP2Location IPLocationService = 1 // ip2location + LocationServiceNeustar IPLocationService = 2 // Neustar (Quova) + LocationServiceMaxMind IPLocationService = 3 // MaxMind + LocationServiceNetAcuity IPLocationService = 4 // NetAcuity (Digital Element) + LocationService51DegreesHighConfidence IPLocationService = 511 // 51Degrees (High Confidence) + LocationService51DegreesMediumConfidence IPLocationService = 512 // 51Degrees (Medium Confidence) ) From 5be72e758d5f79ec1fd83f87d86cb162874869f6 Mon Sep 17 00:00:00 2001 From: postindustria-code Date: Wed, 11 Mar 2026 11:35:47 +0100 Subject: [PATCH 2/2] ci: update actions/cache to v4 to fix deprecated version error --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e2885fc..031dd05 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,7 +18,7 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Cache dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}