[PR #3653] [MERGED] Refactor: Update all geofiles #5500

Closed
opened 2026-10-31 20:47:23 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/3653
Author: @nebulosa2007
Created: 1/9/2026
Status: ✅ Merged
Merged: 1/9/2026
Merged by: @MHSanaei

Base: main ← Head: update_all_geofiles


📝 Commits (1)

  • 8353395 refactor update geofiles fuctions

📊 Changes

1 file changed (+16 additions, -21 deletions)

View changed files

📝 x-ui.sh (+16 -21)

📄 Description

What is the pull request?

Changes:

  1. No need to change the working directory (to ../x-ui/bin) when running the simple command x-ui update-all-geofiles.
  2. Will update dat files when really needed, respecting the 304 header (Not Modified) from sources.
  3. One update function for all sources — easy to add/edit sources and maintain them.

These changes are necessary to create update-geofiles.timer/service, in future.

Which part of the application is affected by the change?

  • Frontend
  • Backend

Type of Changes

  • Bug fix
  • New feature
  • Refactoring
  • Other

Screenshots


🔄 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/MHSanaei/3x-ui/pull/3653 **Author:** [@nebulosa2007](https://github.com/nebulosa2007) **Created:** 1/9/2026 **Status:** ✅ Merged **Merged:** 1/9/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `update_all_geofiles` --- ### 📝 Commits (1) - [`8353395`](https://github.com/MHSanaei/3x-ui/commit/835339599a4ebf114c05fe47e8480d041b552512) refactor update geofiles fuctions ### 📊 Changes **1 file changed** (+16 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `x-ui.sh` (+16 -21) </details> ### 📄 Description ## What is the pull request? Changes: 1. No need to change the working directory (to ../x-ui/bin) when running the simple command `x-ui update-all-geofiles`. 2. Will update dat files when really needed, respecting the 304 header (Not Modified) from sources. 3. One update function for all sources — easy to add/edit sources and maintain them. These changes are necessary to create update-geofiles.timer/service, in future. ## Which part of the application is affected by the change? - [ ] Frontend - [x] Backend ## Type of Changes - [ ] Bug fix - [ ] New feature - [x] Refactoring - [ ] Other ## Screenshots <!-- Add screenshots to illustrate the changes --> <!-- Remove this section if it is not applicable. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:47:23 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5500
No description provided.