[PR #7063] add Rabbit-Hole UA #6628

Open
opened 2026-11-07 14:34:15 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/7063
Author: @stefjen07
Created: 11/4/2026
Status: 🔄 Open

Base: main ← Head: patch-1


📝 Commits (1)

📊 Changes

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

View changed files

📝 internal/web/service/setting.go (+1 -1)

📄 Description

Summary

Adding RabbitHole client user agent
Example: Rabbit-Hole/iOS (1.5.0-207; language en_US)
RabbitHole:

Why

RabbitHole uses Mihomo core and sends Rabbit-Hole/ User-Agent. The existing default regex only recognizes clash and mihomo, so requests using the new User-Agent don't receive Clash/Mihomo subscription

Type of change

  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Documentation
  • Tests only
  • Build / CI / tooling
  • Other

Areas affected

  • Frontend (UI / panel pages)
  • Backend (API endpoints, login, settings)
  • Xray config generation
  • Subscription (share links / Clash / JSON)
  • Statistics / traffic counters
  • Database / migrations
  • Install / upgrade script
  • Docker image
  • Multi-node (sub-nodes)
  • Telegram bot

How was this tested?

Verified responses for different Mihomo user agents and ran tests locally

Breaking changes

None

Checklist

  • I tested the change locally and confirmed the described behavior.
  • I added or updated tests for the new behavior (when applicable).
  • go build ./... and the test suite pass locally.
  • For frontend changes: npm run lint, npm run typecheck, and npm run build pass.
  • I updated the Wiki / README / API docs if user-facing behavior changed.
  • My commits follow the project's existing message style.
  • I have no unrelated changes mixed into this PR.

🔄 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/7063 **Author:** [@stefjen07](https://github.com/stefjen07) **Created:** 11/4/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`287f14e`](https://github.com/MHSanaei/3x-ui/commit/287f14e9013ea81da14720f4e8de0706195e7a11) Update setting.go ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `internal/web/service/setting.go` (+1 -1) </details> ### 📄 Description ## Summary Adding RabbitHole client user agent Example: `Rabbit-Hole/iOS (1.5.0-207; language en_US)` RabbitHole: - https://apps.apple.com/app/rabbithole-vpn-client/id6683309629 - https://play.google.com/store/apps/details?id=com.rabbithole.RabbitHole ## Why RabbitHole uses Mihomo core and sends `Rabbit-Hole/` User-Agent. The existing default regex only recognizes `clash` and `mihomo`, so requests using the new User-Agent don't receive Clash/Mihomo subscription ## Type of change - [ ] Bug fix - [ ] New feature - [ ] Refactoring (no behavior change) - [ ] Documentation - [ ] Tests only - [ ] Build / CI / tooling - [x] Other ## Areas affected - [ ] Frontend (UI / panel pages) - [x] Backend (API endpoints, login, settings) - [ ] Xray config generation - [x] Subscription (share links / Clash / JSON) - [ ] Statistics / traffic counters - [ ] Database / migrations - [ ] Install / upgrade script - [ ] Docker image - [ ] Multi-node (sub-nodes) - [ ] Telegram bot ## How was this tested? Verified responses for different Mihomo user agents and ran tests locally ## Breaking changes None ## Checklist - [x] I tested the change locally and confirmed the described behavior. - [x] I added or updated tests for the new behavior (when applicable). - [x] `go build ./...` and the test suite pass locally. - [x] For frontend changes: `npm run lint`, `npm run typecheck`, and `npm run build` pass. - [x] I updated the Wiki / README / API docs if user-facing behavior changed. - [x] My commits follow the project's existing message style. - [x] I have no unrelated changes mixed into this PR. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#6628
No description provided.