Skip to content

3x-ui fails to parse and import VLESS + XHTTP outbound configs correctly #4406

Description

@samansamie

Describe the bug

When importing a VLESS + XHTTP outbound configuration in 3x-ui through the Xray Configuration → Outbounds → Add Outbound → JSON tab, the host value is not added automatically after converting a V2Ray link to JSON.
As a result, the host must be added manually either:

inside the generated JSON file, or
from the “Basic” tab by adding the request header manually.

Another issue is that when directly importing a JSON outbound generated by v2rayN, 3x-ui fails to parse several fields correctly.
For example, it does not correctly detect:

address
port
UUID
the entire XHTTP extra section

This causes the imported outbound configuration to be incomplete or broken.

How to repeat the problem?

Open 3x-ui panel.
Go to Xray Configuration.
Open the Outbounds section.
Click “Add Outbound”.
Go to the “JSON” tab.
Paste a VLESS + XHTTP V2Ray link.
Click “Convert”.

Expected action

All fields including host and XHTTP extra settings should be parsed and added automatically.

Received action

The host field is missing and must be added manually.
Some fields from JSON configs generated by v2rayN are not parsed correctly, including address, port, UUID, and XHTTP extra settings.

3x-ui Version

3.0.2

Xray-core Version

26.4.25

Checklist

  • This bug report is written entirely in English.
  • This bug report is new and no one has reported it before me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions