[GH-ISSUE #4382] Bug report #2987

Closed
opened 2026-10-31 20:29:21 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @mclinyeshi on GitHub (May 14, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4382

Describe the bug

In the newly refactored Vue 3 frontend (v3.0.x), configuring a Hysteria2 inbound with an Obfs password fails to generate the correct obfuscation fields for Xray-core.

Failed Workaround (JSON Sanitization Bug):
If a user tries to bypass the UI bug by editing the "Advanced Configuration" and manually injecting the correct obfuscation fields (e.g., obfuscation / obfsPassword or udpmasks), saving the inbound triggers the backend's data sanitization. The backend recognizes the fields as invalid, deletes them, and forcibly resets the JSON, erasing both the manual obfs settings and the core client password.

How to repeat the problem?

1.Create a Hysteria2 inbound and enter a password in the Obfs password field.
2.Connect with a client using obfs: salamander and the corresponding password.
3.Check the underlying JSON generated by the panel.

Expected action

The Obfs password field in the UI should correctly map to Xray-core's Hysteria2 Salamander implementation, and the Advanced JSON editor should allow manual parameter injection without forcefully clearing the configuration.

Received action

1.The connection times out (Xray sends a 46-byte stateless reset).
2.The underlying JSON generated reveals that the obfs password is not properly injected into the stream settings (or is wrongly mapped to auth instead of obfsPassword under hysteriaSettings).

3x-ui Version

v3.0.2

Xray-core Version

v26.5.9

Checklist

  • This bug report is written entirely in English.
  • This bug report is new and no one has reported it before me.
Originally created by @mclinyeshi on GitHub (May 14, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4382 ### Describe the bug In the newly refactored Vue 3 frontend (v3.0.x), configuring a Hysteria2 inbound with an Obfs password fails to generate the correct obfuscation fields for Xray-core. Failed Workaround (JSON Sanitization Bug): If a user tries to bypass the UI bug by editing the "Advanced Configuration" and manually injecting the correct obfuscation fields (e.g., obfuscation / obfsPassword or udpmasks), saving the inbound triggers the backend's data sanitization. The backend recognizes the fields as invalid, deletes them, and forcibly resets the JSON, erasing both the manual obfs settings and the core client password. ### How to repeat the problem? 1.Create a Hysteria2 inbound and enter a password in the Obfs password field. 2.Connect with a client using obfs: salamander and the corresponding password. 3.Check the underlying JSON generated by the panel. ### Expected action The Obfs password field in the UI should correctly map to Xray-core's Hysteria2 Salamander implementation, and the Advanced JSON editor should allow manual parameter injection without forcefully clearing the configuration. ### Received action 1.The connection times out (Xray sends a 46-byte stateless reset). 2.The underlying JSON generated reveals that the obfs password is not properly injected into the stream settings (or is wrongly mapped to auth instead of obfsPassword under hysteriaSettings). ### 3x-ui Version v3.0.2 ### Xray-core Version v26.5.9 ### Checklist - [x] This bug report is written entirely in English. - [x] This bug report is new and no one has reported it before me.
bsakaguchi 2026-10-31 20:29:21 +07:00
  • closed this issue
  • added the
    bug
    label
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#2987
No description provided.