[PR #4388] [MERGED] fix: correct Hysteria2 "Obfs password" label to "Auth password" #5681

Closed
opened 2026-11-02 04:03:18 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/4388
Author: @abdalrahmanx9
Created: 5/14/2026
Status: ✅ Merged
Merged: 5/14/2026
Merged by: @MHSanaei

Base: main ← Head: fix/hysteria2-obfs-password-label


📝 Commits (1)

  • 99ff891 fix: correct Hysteria2 Obfs password label to Auth password

📊 Changes

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

View changed files

📝 frontend/src/pages/inbounds/InboundFormModal.vue (+2 -2)

📄 Description

Summary

Fixes the mislabeled "Obfs password" field in the Hysteria2 inbound stream settings. The field was incorrectly bound to hysteriaSettings.auth (Hysteria server authentication password) but labeled as obfuscation, misleading users into thinking they were configuring salamander obfuscation.

Closes #4382

Problem

Per Xray-core FinalMask docs, Hysteria2 salamander obfuscation is configured through finalmask.udp[].salamander.password — NOT through hysteriaSettings.auth. The UI had a field labeled "Obfs password" bound to hysteriaSettings.auth, causing:

  1. Xray-core receiving no salamander obfuscation config → stateless reset (46 bytes) on connection
  2. Users trying to work around it via the Advanced JSON editor, but HysteriaStreamSettings.fromJson() only reads known fields (protocol, version, auth, udpIdleTimeout, masquerade), silently dropping any manually-injected obfuscation or obfsPassword fields

Fix (1 file, +2/-2 lines)

  • Changed label from "Obfs password" → "Auth password"
  • Updated tooltip to explain it is the server auth password (overridden by per-client auth) and to direct users to configure salamander obfuscation via the UDP Masks section
Before After
Obfs password Auth password
"Obfuscation password. Must match..." "Hysteria server authentication password. Overridden by per-client auth..."

Verification

  • The FinalMaskForm (UDP Masks) is already visible for Hysteria protocol and defaults to salamander type — correctly generating finalmask.udp[].salamander.password in the Xray config
  • genHysteriaLink() in inbound.js correctly reads the obfuscation password from finalmask.udp[].salamander.password and emits obfs=salamander&obfs-password=xxx in share links
  • The outbound form already uses the correct "Auth password" label for the same field at OutboundFormModal.vue:833

🔄 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/4388 **Author:** [@abdalrahmanx9](https://github.com/abdalrahmanx9) **Created:** 5/14/2026 **Status:** ✅ Merged **Merged:** 5/14/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `fix/hysteria2-obfs-password-label` --- ### 📝 Commits (1) - [`99ff891`](https://github.com/MHSanaei/3x-ui/commit/99ff891a9983813b0c1fa4a6ceb8f6e1a0331739) fix: correct Hysteria2 Obfs password label to Auth password ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/pages/inbounds/InboundFormModal.vue` (+2 -2) </details> ### 📄 Description ## Summary Fixes the mislabeled "Obfs password" field in the Hysteria2 inbound stream settings. The field was incorrectly bound to `hysteriaSettings.auth` (Hysteria server authentication password) but labeled as obfuscation, misleading users into thinking they were configuring salamander obfuscation. Closes #4382 ## Problem Per [Xray-core FinalMask docs](https://xtls.github.io/config/transports/finalmask.html), Hysteria2 salamander obfuscation is configured through `finalmask.udp[].salamander.password` — NOT through `hysteriaSettings.auth`. The UI had a field labeled "Obfs password" bound to `hysteriaSettings.auth`, causing: 1. Xray-core receiving no salamander obfuscation config → **stateless reset (46 bytes)** on connection 2. Users trying to work around it via the Advanced JSON editor, but `HysteriaStreamSettings.fromJson()` only reads known fields (`protocol`, `version`, `auth`, `udpIdleTimeout`, `masquerade`), silently dropping any manually-injected `obfuscation` or `obfsPassword` fields ## Fix (1 file, +2/-2 lines) - Changed label from "Obfs password" → "Auth password" - Updated tooltip to explain it is the server auth password (overridden by per-client auth) and to direct users to configure salamander obfuscation via the UDP Masks section | Before | After | |--------|-------| | Obfs password | Auth password | | "Obfuscation password. Must match..." | "Hysteria server authentication password. Overridden by per-client auth..." | ## Verification - The FinalMaskForm (UDP Masks) is already visible for Hysteria protocol and defaults to `salamander` type — correctly generating `finalmask.udp[].salamander.password` in the Xray config - `genHysteriaLink()` in `inbound.js` correctly reads the obfuscation password from `finalmask.udp[].salamander.password` and emits `obfs=salamander&obfs-password=xxx` in share links - The outbound form already uses the correct "Auth password" label for the same field at `OutboundFormModal.vue:833` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:03:18 +07:00
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#5681
No description provided.