[GH-ISSUE #5668] Regression: Shadowsocks 2022 works on iOS in v3.3.1 but not in v3.4.x #3947

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/5668

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.

Originally posted by @mehrabparmar1376-cmd in #5667

Originally created by @mori-1997-mori2276-cmd on GitHub (Jun 29, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5668 > 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. _Originally posted by @mehrabparmar1376-cmd in [#5667](https://github.com/MHSanaei/3x-ui/issues/5667#issuecomment-4837680306)_
bsakaguchi 2026-10-31 20:36:05 +07:00
  • closed this issue
  • added the
    duplicate
    label
Author
Owner

@TheAstro9aut commented on GitHub (Jun 29, 2026):

i have exactly the same issue. and issued a bug but to no avail
please revert ss configs to SIP002 base 64
this is the lone reason keeping me on 3.3.1

<!-- gh-comment-id:4837877510 --> @TheAstro9aut commented on GitHub (Jun 29, 2026): i have exactly the same issue. and issued a bug but to no avail please revert ss configs to SIP002 base 64 this is the lone reason keeping me on 3.3.1
Author
Owner

@github-actions[bot] commented on GitHub (Jun 29, 2026):

This is a duplicate of #5634, which covers the same Shadowsocks 2022 / SIP022 link compatibility regression on iOS since v3.4.0. Your detailed breakdown (V2Box failing to import entirely, Shadowrocket/Streisand/NPV Tunnel importing but not connecting, v2rayNG re-exporting to SIP002 format that then works) is useful context and has been added to that thread.

The underlying situation, confirmed in frontend/src/lib/xray/inbound-link.ts (lines 643-658) and internal/sub/service.go (lines 827-834): starting in v3.4.0, links for 2022-blake3-* ciphers are generated in SIP022 format (percent-encoded method and keys, literal : separators in userinfo) instead of the SIP002 base64-encoded userinfo format used in v3.3.1. SIP022 is the correct format per the cipher specification, but a number of iOS clients do not yet implement it fully.

Immediate workaround while client support catches up: switch the inbound cipher to a non-2022 method (aes-256-gcm or chacha20-ietf-poly1305). Those ciphers continue to use SIP002 links, which every tested iOS client accepts. The tradeoff is loss of the replay-protection guarantees that 2022-blake3 provides.

The feature request for a per-inbound option to emit SIP002-format links for compatibility can be followed and discussed in #5634.

This reply was generated automatically; a maintainer may follow up.

<!-- gh-comment-id:4837883457 --> @github-actions[bot] commented on GitHub (Jun 29, 2026): This is a duplicate of #5634, which covers the same Shadowsocks 2022 / SIP022 link compatibility regression on iOS since v3.4.0. Your detailed breakdown (V2Box failing to import entirely, Shadowrocket/Streisand/NPV Tunnel importing but not connecting, v2rayNG re-exporting to SIP002 format that then works) is useful context and has been added to that thread. The underlying situation, confirmed in frontend/src/lib/xray/inbound-link.ts (lines 643-658) and internal/sub/service.go (lines 827-834): starting in v3.4.0, links for 2022-blake3-* ciphers are generated in SIP022 format (percent-encoded method and keys, literal : separators in userinfo) instead of the SIP002 base64-encoded userinfo format used in v3.3.1. SIP022 is the correct format per the cipher specification, but a number of iOS clients do not yet implement it fully. Immediate workaround while client support catches up: switch the inbound cipher to a non-2022 method (aes-256-gcm or chacha20-ietf-poly1305). Those ciphers continue to use SIP002 links, which every tested iOS client accepts. The tradeoff is loss of the replay-protection guarantees that 2022-blake3 provides. The feature request for a per-inbound option to emit SIP002-format links for compatibility can be followed and discussed in #5634. *This reply was generated automatically; a maintainer may follow up.*
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#3947
No description provided.