[GH-ISSUE #4079] [Bug] Hysteria2 client detail modal uses "Domain" as server host in URI instead of "Address" #2767

Closed
opened 2026-10-31 20:27:49 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @uhovohu on GitHub (Apr 22, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4079

Describe the bug

For a hy2 inbound, the hysteria2 URI generated on the client detail modal uses
the "Domain" field as the server host, while the subscription page correctly
uses the "Address" field. This causes the two links to point to different servers.
Additionally, the "Address" field shown on the detail modal does not match the
host used in the URI generated on the same page.

How to repeat the problem?

  1. Open the Inbounds page.
  2. Add a Hysteria2 inbound and set "Address" and "Domain" to different values.
  3. Add a client to the inbound, then open the client detail modal.
  4. Copy the hysteria2 URI from the URL section — note the host after @.
  5. Open the subscription info page for the same client.
  6. Copy the hysteria2 URI from Link 1 — note the host after @.
  7. The two hosts differ: the detail modal uses "Domain", the subscription page uses "Address".

Expected action

Both the client detail modal and the subscription page should generate
hysteria2 URIs using the "Address" field as the server host, consistent
with what is displayed in the "Address" field on the detail modal.

Received action

The client detail modal generates the URI with the "Domain" field value
as the server host (e.g. cloud.example.com), while the subscription page
uses the "Address" field value (e.g. tpus.example.com). The "Address"
field on the detail modal and the URI on the same page are inconsistent.

3x-ui Version

v2.9.1

Xray-core Version

v26.4.17

Checklist

  • This bug report is written entirely in English.
  • This bug report is new and no one has reported it before me.
Originally created by @uhovohu on GitHub (Apr 22, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4079 ### Describe the bug For a hy2 inbound, the hysteria2 URI generated on the client detail modal uses the "Domain" field as the server host, while the subscription page correctly uses the "Address" field. This causes the two links to point to different servers. Additionally, the "Address" field shown on the detail modal does not match the host used in the URI generated on the same page. ### How to repeat the problem? 1. Open the Inbounds page. 2. Add a Hysteria2 inbound and set "Address" and "Domain" to different values. 3. Add a client to the inbound, then open the client detail modal. 4. Copy the hysteria2 URI from the URL section — note the host after `@`. 5. Open the subscription info page for the same client. 6. Copy the hysteria2 URI from Link 1 — note the host after `@`. 7. The two hosts differ: the detail modal uses "Domain", the subscription page uses "Address". ### Expected action Both the client detail modal and the subscription page should generate hysteria2 URIs using the "Address" field as the server host, consistent with what is displayed in the "Address" field on the detail modal. ### Received action The client detail modal generates the URI with the "Domain" field value as the server host (e.g. cloud.example.com), while the subscription page uses the "Address" field value (e.g. tpus.example.com). The "Address" field on the detail modal and the URI on the same page are inconsistent. ### 3x-ui Version v2.9.1 ### Xray-core Version v26.4.17 ### Checklist - [x] This bug report is written entirely in English. - [x] This bug report is new and no one has reported it before me.
bsakaguchi 2026-10-31 20:27:49 +07:00
  • closed this issue
  • added the
    bug
    label
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#2767
No description provided.