mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #3971] [MERGED] Fix geosite:ru rule (Normalization to RU vs lowercase ru) #5571
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#5571
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/3971
Author: @Troodi
Created: 3/26/2026
Status: ✅ Merged
Merged: 4/19/2026
Merged by: @MHSanaei
Base:
main← Head:fix📝 Commits (3)
d9f3a03Fix geosite:ru rule (Normalization to RU vs lowercase ru)45ef05aMerge branch 'main' into fix3b05799fix📊 Changes
3 files changed (+75 additions, -1 deletions)
View changed files
📝
go.mod(+1 -1)📝
web/service/server.go(+56 -0)📝
web/web.go(+18 -0)📄 Description
What is the pull request?
Fixes a bug where Xray-core fails to start when a
geosite:rurouting rule is added. The root cause is a case-sensitivity mismatch: Xray internally normalizes 2-letter country codes to uppercase (RU), but the lookup ingeosite.datis case-sensitive and the file stores tags in lowercase (ru). This results in acode not found in geosite.dat: RUerror even though the configuration is correct.Which part of the application is affected by the change?
Type of Changes
Steps
Before (Xray fails to start):
Failed to start: main: failed to load config files: [bin/config.json] >
infra/conf: failed to build routing configuration >
infra/conf: invalid field rule >
infra/conf: failed to parse domain rule: geosite:ru >
infra/conf: failed to load geosite: RU >
infra/conf: code not found in geosite.dat: RU
After: Xray starts successfully with
geosite:rurouting rules.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.