mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6168] [MERGED] Add remote routing URL support #6130
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#6130
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/6168
Author: @yelloduxx
Created: 8/1/2026
Status: ✅ Merged
Merged: 8/18/2026
Merged by: @MHSanaei
Base:
main← Head:agent/routing-url-sources📝 Commits (4)
ce3634fAdd remote routing URL support7144ab9Harden remote routing refreshf8b315aMerge branch 'main' into agent/routing-url-sources7018a85fix(sub): harden remote routing fetch and accept Mihomo src rule flag📊 Changes
25 files changed (+1835 additions, -54 deletions)
View changed files
📝
frontend/src/pages/settings/SubscriptionGeneralTab.tsx(+13 -7)📝
internal/sub/clash_service.go(+250 -2)📝
internal/sub/controller.go(+10 -5)➕
internal/sub/remote_routing.go(+623 -0)➕
internal/sub/remote_routing_test.go(+750 -0)📝
internal/util/common/url.go(+27 -1)📝
internal/util/common/url_test.go(+26 -0)📝
internal/web/cadence_test.go(+1 -0)➕
internal/web/job/remote_routing_job.go(+31 -0)📝
internal/web/service/setting.go(+20 -0)➕
internal/web/service/setting_remote_routing_test.go(+38 -0)📝
internal/web/translation/ar-EG.json(+3 -3)📝
internal/web/translation/en-US.json(+3 -3)📝
internal/web/translation/es-ES.json(+3 -3)📝
internal/web/translation/fa-IR.json(+3 -3)📝
internal/web/translation/id-ID.json(+3 -3)📝
internal/web/translation/ja-JP.json(+3 -3)📝
internal/web/translation/pt-BR.json(+3 -3)📝
internal/web/translation/ru-RU.json(+3 -3)📝
internal/web/translation/tr-TR.json(+3 -3)...and 5 more files
📄 Description
What
incy://autorouting/onadd/<URL>deeplink, so Incy performs its own periodic refresh.proxy-groups,rule-providers, andrulesfrom remote Clash/Mihomo documents; preserve panel-generated proxies and reject dangling group/provider/rule references.Why
The routing fields currently accept only materialized rules/deeplinks. That makes permanent upstream routing URLs unusable without a separate updater or a deployment-specific module.
Compatibility and security
Routing-EnableandRoutingheaders.Routingheader value.proxy-providers, or change listeners, LAN exposure, DNS, TUN, sniffing, controllers, or authentication.Checks
go test ./...go test -race ./internal/subnpm run lintnpm run typechecknpm run buildnpm test -- --project unit --project components(986 tests)git diff --check🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.