[PR #1234] feat: manage uncompressed geolite file #1099

Open
opened 2026-02-04 21:16:43 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/pocket-id/pocket-id/pull/1234
Author: @gucheen
Created: 1/12/2026
Status: 🔄 Open

Base: mainHead: uncompressed-geolite-file


📝 Commits (2)

  • 3f8881f feat: manage uncompressed geolite file
  • 5a0a2e5 Merge branch 'main' into uncompressed-geolite-file

📊 Changes

1 file changed (+51 additions, -1 deletions)

View changed files

📝 backend/internal/service/geolite_service.go (+51 -1)

📄 Description

Since now maxmind limits download geolite db file in some countries, I have to download it from other sources, which provide uncompressed raw db file.

Add a check before try to unzip the db file through a magic number(https://stackoverflow.com/questions/6059302/how-to-check-if-a-file-is-gzip-compressed).

If not gzip, assume it's a regular database file, then write(copy) it to disk.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/pocket-id/pocket-id/pull/1234 **Author:** [@gucheen](https://github.com/gucheen) **Created:** 1/12/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `uncompressed-geolite-file` --- ### 📝 Commits (2) - [`3f8881f`](https://github.com/pocket-id/pocket-id/commit/3f8881f85a2f97d9d72cf2267d712b32cac9a3d0) feat: manage uncompressed geolite file - [`5a0a2e5`](https://github.com/pocket-id/pocket-id/commit/5a0a2e5dfa379bde0788820a07dc69884de2b661) Merge branch 'main' into uncompressed-geolite-file ### 📊 Changes **1 file changed** (+51 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `backend/internal/service/geolite_service.go` (+51 -1) </details> ### 📄 Description Since now maxmind limits download geolite db file in some countries, I have to download it from other sources, which provide uncompressed raw db file. Add a check before try to unzip the db file through a magic number(https://stackoverflow.com/questions/6059302/how-to-check-if-a-file-is-gzip-compressed). If not gzip, assume it's a regular database file, then write(copy) it to disk. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-04 21:16:43 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id#1099