mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-19 11:34:59 +03:00
fix(sub): make Happ require auth on its local SOCKS/HTTP proxy (#6628)
Happ ships its local SOCKS5 (127.0.0.1:10808) and HTTP inbounds with authorization disabled by default. Any app on the same device can then connect to that proxy, bypassing Android's per-app VPN routing, and learn the VPN server address - the leak publicly described in March-April 2026 for Happ, v2rayNG and other VLESS clients. Happ fixed its Xray API exposure, but the unauthenticated local proxy remained. Happ exposes a standard subscription header for this (no Provider ID required): socks-auth-mode / http-auth-mode = auto|manual|from-json| disable. A new subscription setting, subHappLocalProxyAuth (default "auto"), sends both headers to Happ clients. Like every other Happ header it is emitted only when Happ auto-detect is enabled and the User-Agent is Happ, so panels that never opted into the Happ integration see no change. An empty value sends nothing and keeps the client's own setting. Verified on Happ Android 4.4.1 (Xray 26.7.28): a subscription carrying socks-auth-mode manual + a test user/password switched the client's Inbounds screen to Manual with those credentials on "refresh subscription", and "auto" switched it to Auto with generated credentials. Co-authored-by: Kirill Rudenko <rudenko@npp-energy.ru> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Sanaei <ho3ein.sanaei@gmail.com>
This commit is contained in:
@@ -1558,6 +1558,11 @@
|
||||
"subHappColorProfileDesc": "以 JSON 字符串自定义 iOS 配色主题,或填写 resetcolors 恢复默认颜色。",
|
||||
"subHappPingType": "延迟测速协议",
|
||||
"subHappPingTypeDesc": "Happ 测量节点延迟的方式:经由代理 (GET 或 HEAD)、TCP 或 ICMP。",
|
||||
"subHappLocalProxyAuth": "本地代理认证",
|
||||
"subHappLocalProxyAuthDesc": "向 Happ 发送 socks-auth-mode / http-auth-mode。没有认证时,设备上的任何应用都能通过 Happ 的本地 SOCKS5/HTTP 代理进入隧道并获知服务器地址。\"自动\" 让 Happ 生成随机凭据;无需 Provider ID。",
|
||||
"subHappLocalProxyAuthAuto": "自动(随机凭据)",
|
||||
"subHappLocalProxyAuthDisable": "禁用",
|
||||
"subHappLocalProxyAuthUnset": "不发送(客户端默认)",
|
||||
"subHappAutoConnect": "启动时自动连接",
|
||||
"subHappAutoConnectDesc": "Happ 客户端打开时自动连接代理节点。",
|
||||
"subHappAutoConnectType": "自动连接策略",
|
||||
|
||||
Reference in New Issue
Block a user