[GH-ISSUE #5667] [Bug]: Shadowsocks #3946

Closed
opened 2026-10-31 20:36:05 +07:00 by bsakaguchi · 2 comments
Owner

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.

  • On V2Box (iOS), the configuration link cannot be imported at all.
  • On Shadowrocket, Streisand, and NPV Tunnel, the link can be imported, but it never connects.
  • However, if I import the same link into v2rayNG (Android) and then Export it, the exported "ss://" link changes to the old Base64 format.
  • After that, the exported link works perfectly on all iPhone clients (V2Box, Shadowrocket, Streisand, etc.).

This indicates that the server configuration is correct. The only difference is the generated "ss://" link format.

Also:

  • If I downgrade to 3.3.1, the iPhone issue disappears and everything works correctly.
  • However, version 3.3.1 has another problem: after renewing a user's account, the user does not work until Xray is restarted manually.
  • This renewal issue is fixed in 3.4.x, but now the new Shadowsocks links are incompatible with many iOS clients.

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

  1. Create a new Shadowsocks 2022 (2022-blake3-aes-256-gcm) client in 3x-ui v3.4.x.
  2. Copy the generated "ss://" link or scan the QR code.
  3. Import the link into an iOS client (V2Box, Shadowrocket, Streisand, or NPV Tunnel).
  4. V2Box cannot import the link. Other iOS clients import it but cannot establish a connection.
  5. Import the same link into v2rayNG on Android, then export it.
  6. Import the exported link into the same iOS client. The connection works correctly.

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

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
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. - On V2Box (iOS), the configuration link cannot be imported at all. - On Shadowrocket, Streisand, and NPV Tunnel, the link can be imported, but it never connects. - However, if I import the same link into v2rayNG (Android) and then Export it, the exported "ss://" link changes to the old Base64 format. - After that, the exported link works perfectly on all iPhone clients (V2Box, Shadowrocket, Streisand, etc.). This indicates that the server configuration is correct. The only difference is the generated "ss://" link format. Also: - If I downgrade to 3.3.1, the iPhone issue disappears and everything works correctly. - However, version 3.3.1 has another problem: after renewing a user's account, the user does not work until Xray is restarted manually. - This renewal issue is fixed in 3.4.x, but now the new Shadowsocks links are incompatible with many iOS clients. 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 1. Create a new Shadowsocks 2022 (2022-blake3-aes-256-gcm) client in 3x-ui v3.4.x. 2. Copy the generated "ss://" link or scan the QR code. 3. Import the link into an iOS client (V2Box, Shadowrocket, Streisand, or NPV Tunnel). 4. V2Box cannot import the link. Other iOS clients import it but cannot establish a connection. 5. Import the same link into v2rayNG on Android, then export it. 6. Import the exported link into the same iOS client. The connection works correctly. ### 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 ```shell ``` ### 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 - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:36:05 +07:00
Author
Owner

@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) and internal/sub/service.go (lines 824–835)—is:

ss://2022-blake3-aes-256-gcm:%3CserverKey%3E:%3CclientKey%3E@host:port

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-gcm or chacha20-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.

<!-- gh-comment-id:4837241722 --> @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) and `internal/sub/service.go` (lines 824–835)—is: ``` ss://2022-blake3-aes-256-gcm:%3CserverKey%3E:%3CclientKey%3E@host:port ``` The old SIP002 base64 format used in v3.3.1 was not correct for 2022-blake3 ciphers per the [SIP022 specification](https://github.com/shadowsocks/shadowsocks-org/issues/196). 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-gcm` or `chacha20-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.*
Author
Owner

@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.

  • V2Box (iOS) cannot import the generated link.
  • Shadowrocket, Streisand, and NPV Tunnel can import the link, but they cannot connect.
  • If I import the exact same link into v2rayNG on Android and then export it, the exported "ss://" link changes to the old Base64 format.
  • Without changing the server, keys, or any settings, the exported link works immediately on all tested iOS clients.

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.

<!-- gh-comment-id:4837680306 --> @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. - V2Box (iOS) cannot import the generated link. - Shadowrocket, Streisand, and NPV Tunnel can import the link, but they cannot connect. - If I import the exact same link into v2rayNG on Android and then export it, the exported "ss://" link changes to the old Base64 format. - Without changing the server, keys, or any settings, the exported link works immediately on all tested iOS clients. 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.
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#3946
No description provided.