mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[PR #3980] [MERGED] Add custom geosite/geoip URL sources #5574
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#5574
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/3980
Author: @MrRefactoring
Created: 3/30/2026
Status: ✅ Merged
Merged: 4/19/2026
Merged by: @MHSanaei
Base:
main← Head:feature/custom-geo-sources📝 Commits (2)
0b45732feat: add custom geosite/geoip URL sources96f3768fix📊 Changes
30 files changed (+1974 additions, -14 deletions)
View changed files
📝
README.ar_EG.md(+8 -0)📝
README.es_ES.md(+8 -0)📝
README.fa_IR.md(+8 -0)📝
README.md(+8 -0)📝
README.ru_RU.md(+8 -0)📝
README.zh_CN.md(+8 -0)📝
database/db.go(+2 -2)📝
database/model/model.go(+12 -0)📝
web/assets/css/custom.min.css(+1 -1)📝
web/controller/api.go(+5 -3)➕
web/controller/custom_geo.go(+174 -0)📝
web/controller/util.go(+11 -2)📝
web/html/index.html(+220 -2)📝
web/html/xray.html(+27 -0)➕
web/service/custom_geo.go(+603 -0)➕
web/service/custom_geo_test.go(+330 -0)📝
web/translation/translate.ar_EG.toml(+41 -0)📝
web/translation/translate.en_US.toml(+41 -0)📝
web/translation/translate.es_ES.toml(+41 -0)📝
web/translation/translate.fa_IR.toml(+41 -0)...and 10 more files
📄 Description
What is the pull request?
Adds support for custom GeoSite and GeoIP
.datsources configured from URLs in the panel. Admins can register aliases, download or refresh files intobin/(asgeosite_<alias>.dat/geoip_<alias>.dat), list and manage entries, and use them in routing via Xray’sext:form (e.g.ext:geosite_myalias.dat:tag). Includes REST API under/panel/api/custom-geo/, UI on the index page, Xray rule presets that load user aliases, README updates, and unit tests for the download/service logic. Translations were added for the new strings across supported locales.Closes #3331
Closes #3047
Which part of the application is affected by the change?
Type of Changes
Screenshots
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.