[GH-ISSUE #5437] [Bug]: SHADOWSocks NOT Export The Connection Parameter #3801

Closed
opened 2026-10-31 20:35:03 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @jessiegarrawaysur48 on GitHub (Jun 19, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5437

Describe the bug

hi
web import the shadowsocks in v2rayn the parameter of
[Transport Protocol ]
And if with WS protocol not [HOST ADDRESS & PATH ] integrated to connection

How to reproduce the problem

completly out of automation can be done with handy parameter setup and get the correct result

Expected behavior

No response

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

3.3.1

Xray-core version

26.6.1

How did you install 3x-ui?

Other (please describe in the bug body)

Operating system

ubuntu 24.04

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 @jessiegarrawaysur48 on GitHub (Jun 19, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5437 ### Describe the bug hi web import the shadowsocks in v2rayn the parameter of [Transport Protocol ] And if with WS protocol not [HOST ADDRESS & PATH ] integrated to connection ### How to reproduce the problem completly out of automation can be done with handy parameter setup and get the correct result ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.3.1 ### Xray-core version 26.6.1 ### How did you install 3x-ui? Other (please describe in the bug body) ### Operating system ubuntu 24.04 ### 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:35:03 +07:00
Author
Owner

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

The current v3.3.1 source includes WebSocket transport parameters in the Shadowsocks export. Checking the two code paths that generate a Shadowsocks share link:

Subscription link (internal/sub/service.go, genShadowsocksLink): sets params["type"] = streamNetwork (line 695), then calls applyShareNetworkParams (line 697) which, for the ws branch (line 991), calls applyPathAndHostParams(ws, params) — this writes both path and host into the query string. The resulting URL takes the form ss://BASE64@address:port?type=ws&path=...&host=...#remark.

Copy-link button (frontend/src/lib/xray/inbound-link.ts, genShadowsocksLink / writeNetworkParams): the ws branch (line 450) sets params.set('path', ws.path) and params.set('host', ...) explicitly.

Both code paths look correct for v3.3.1. To diagnose why the parameters are absent in your case, the following is needed:

  1. How are you exporting the link? — subscription URL (from the panel's subscription tab), the copy-link button on the inbound or client row, or a QR code?
  2. The actual exported string (redact real hostnames if needed, but preserve the query string). For example, does the URL contain type=ws at all?
  3. Your WS settings on the inbound: what values are set for host and path in the WebSocket transport configuration?
  4. v2rayN version — older v2rayN builds may silently discard unrecognized query parameters on ss:// URLs if they are not familiar with the Xray-extended format.

A related closed issue describing the same symptom in v3.2.0 is #4734. If the link you copy does contain type=ws&path=...&host=... but v2rayN does not apply those settings after import, this would be a v2rayN parsing issue rather than a 3x-ui export bug, and the workaround is to use the WS settings tab in v2rayN to enter the host/path manually after import.

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

<!-- gh-comment-id:4752575980 --> @github-actions[bot] commented on GitHub (Jun 19, 2026): The current v3.3.1 source includes WebSocket transport parameters in the Shadowsocks export. Checking the two code paths that generate a Shadowsocks share link: **Subscription link** (`internal/sub/service.go`, `genShadowsocksLink`): sets `params["type"] = streamNetwork` (line 695), then calls `applyShareNetworkParams` (line 697) which, for the `ws` branch (line 991), calls `applyPathAndHostParams(ws, params)` — this writes both `path` and `host` into the query string. The resulting URL takes the form `ss://BASE64@address:port?type=ws&path=...&host=...#remark`. **Copy-link button** (`frontend/src/lib/xray/inbound-link.ts`, `genShadowsocksLink` / `writeNetworkParams`): the `ws` branch (line 450) sets `params.set('path', ws.path)` and `params.set('host', ...)` explicitly. Both code paths look correct for v3.3.1. To diagnose why the parameters are absent in your case, the following is needed: 1. **How are you exporting the link?** — subscription URL (from the panel's subscription tab), the copy-link button on the inbound or client row, or a QR code? 2. **The actual exported string** (redact real hostnames if needed, but preserve the query string). For example, does the URL contain `type=ws` at all? 3. **Your WS settings on the inbound**: what values are set for `host` and `path` in the WebSocket transport configuration? 4. **v2rayN version** — older v2rayN builds may silently discard unrecognized query parameters on `ss://` URLs if they are not familiar with the Xray-extended format. A related closed issue describing the same symptom in v3.2.0 is #4734. If the link you copy does contain `type=ws&path=...&host=...` but v2rayN does not apply those settings after import, this would be a v2rayN parsing issue rather than a 3x-ui export bug, and the workaround is to use the WS settings tab in v2rayN to enter the host/path manually after import. *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#3801
No description provided.