mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5745] [Bug]: Hysteria + salamander not working #3994
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#3994
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?
Originally created by @skorphil on GitHub (Jul 2, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5745
Describe the bug
Seems like salamander config not being saved. After i setup in ui, i see this:
ai tells that:
This confirms the config path: /usr/local/x-ui/bin/config.json — same file you already checked, and it had no finalmask. So it's confirmed: 3x-ui is not writing/persisting the salamander obfuscation into the actual Xray config, matching the known 3x-ui bug (#4382) we found earlier.
How to reproduce the problem
Set up inbound hysteria + salamander
Observe errors on client when connecting
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
dev+62f30390
Xray-core version
No response
How did you install 3x-ui?
install.sh script
Operating system
ubuntu aarch
Which parts of the panel are affected?
No response
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
None
Before submitting
@skorphil commented on GitHub (Jul 2, 2026):
ok, seems to fix itself
@github-actions[bot] commented on GitHub (Jul 2, 2026):
Since this closed with "seems to fix itself," posting what the source confirms for the record, in case anyone else lands here with a similar report.
Config path check: In the current codebase, salamander for a Hysteria2 inbound is configured under Stream Settings → UDP Masks (not a dedicated "Obfs password" field). Adding a UDP Mask on a Hysteria inbound defaults its type to
salamander(frontend/src/lib/xray/forms/transport/FinalMaskForm.tsx), with apasswordfield, and this serializes tostreamSettings.finalmask.udp[0] = {type: "salamander", settings: {password: ...}}in the generated Xray config — not intostreamSettings.hysteriaSettings. So the absence of afinalmaskkey in the pastedconfig.jsonsnippet means no UDP Mask entry was present/saved on that inbound at the time it was dumped, rather than the value being silently dropped after being set; this block is only omitted when the mask list is empty (dropLegacyOptionalEmptiesinfrontend/src/lib/xray/inbound-form-adapter.ts).On the "known bug (#4382)" reference: that report targeted a different, older UI path (a single
Obfs passwordfield mapping intohysteriaSettings) on 3x-ui v3.0.2. The current codebase uses the generic UDP Mask /finalmaskmodel described above, so #4382 doesn't describe this code path and isn't confirmation of the same issue here.On UDP-listener-hang bugs: the closed report in #5462 (salamander finalmask hanging the UDP listener after a malformed packet, same class as XTLS/Xray-core#6184) is already fixed upstream and pulled in —
go.modin this repo pinsgithub.com/xtls/xray-coreat a commit from 2026-06-27, after the 2026-06-17 upstream fix (XTLS/Xray-core#6331). That fix was already present in the exact build referenced here (dev+62f30390), so that's not a fit either.If salamander stops persisting again, the most useful next data point would be the full
streamSettingsblock for the inbound (from the panel's inbound JSON view orconfig.json) both right after saving and after an Xray restart, to see whether thefinalmask.udpentry is present at save time and survives a restart.This reply was generated automatically; a maintainer may follow up.