mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5667] [Bug]: Shadowsocks #3946
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#3946
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 @mori-1997-mori2276-cmd on GitHub (Jun 29, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5667
Describe the bug
Hello,
I have the same issue with the Shadowsocks protocol on iPhone.
This indicates that the server configuration is correct. The only difference is the generated "ss://" link format.
Also:
I believe there should be an option to generate the old Base64 (SIP002) Shadowsocks link for compatibility with existing iOS clients until they fully support the new SIP022 format.
How to reproduce the problem
Expected behavior
The generated Shadowsocks link should be compatible with iOS clients, just like in version 3.3.1. The same "ss://" link should work without requiring conversion through an Android client.
Actual behavior
The generated Shadowsocks link from 3x-ui v3.4.x is not compatible with most iOS clients. V2Box cannot import it, while Shadowrocket, Streisand, and NPV Tunnel can import it but cannot connect. If the same link is imported into v2rayNG on Android and then exported, the exported link works correctly on all tested iOS clients.
Relevant logs
Screenshots
No response
3x-ui version
3.4.2
Xray-core version
v26.6.27
How did you install 3x-ui?
install.sh script
Operating system
۲۴ ۲۶ ۲۲
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
@github-actions[bot] commented on GitHub (Jun 29, 2026):
This is a duplicate of #5634, which covers the same behavior: the Shadowsocks 2022-blake3 link format changed deliberately in v3.4.0 from SIP002 (base64 userinfo) to SIP022 (percent-encoded userinfo). The current output—confirmed in
frontend/src/lib/xray/inbound-link.ts(lines 649–659) andinternal/sub/service.go(lines 824–835)—is:The old SIP002 base64 format used in v3.3.1 was not correct for 2022-blake3 ciphers per the SIP022 specification. The change is intentional and the discussion on whether to add a legacy-format compatibility option belongs in #5634.
Immediate workaround: switch the inbound cipher to a non-2022 method such as
aes-256-gcmorchacha20-ietf-poly1305. Those ciphers are not subject to SIP022 and continue to generate SIP002 base64 links that all tested iOS clients accept. The tradeoff is loss of the replay-protection guarantees that 2022-blake3 provides.This reply was generated automatically; a maintainer may follow up.
@mori-1997-mori2276-cmd commented on GitHub (Jun 29, 2026):
I understand that the change to SIP022 is intentional and follows the specification.
However, in my testing, the problem is not only importing the link.
This suggests there is still a compatibility issue between the current SIP022-generated links and existing iOS clients.
Also, version 3.3.1 does not have this iOS compatibility issue, but it has another bug where renewed users do not work until Xray is restarted manually. Version 3.4.x fixes the renewal issue but introduces this iOS compatibility problem.