Skip to content

Finalmask configuration is not included in generated connection links #302

@GogoLike

Description

@GogoLike

Describe the bug

When adding a connection configuration that uses finalmask, the subscription link does not include the configuration parameters for finalmask. The link correctly includes parameters like vless, xhttp, kcp, etc., but the fm= parameter is missing.

To Reproduce

  1. Create any Xray configuration with the finalmask section enabled.
  2. Create a user with access to this configuration.
  3. Open the user's subscription link.
  4. Check the generated connection link for this specific inbound.
  5. The fm= parameter will be missing.

Expected behavior

The generated subscription link should include the fm= parameter corresponding to the finalmask configuration.

Example: vless://b318a3f4-2503-4656-a249-74a759dfaba6@ip:10000?encryption=none&security=none&fm=%7B%22udp%22%3A%5B%7B%22type%22%3A%22header-dtls%22%7D%5D%7D&type=xhttp&path=%2F&mode=auto#Vless-xHTTP-Finalmask

Additional context

Example Xray inbound configuration:

{
  "tag": "Vless+xHTTP+Finalmask",
  "port": 10000,
  "protocol": "vless",
  "settings": {
    "clients": [],
    "decryption": "none"
  },
  "streamSettings": {
    "network": "xhttp",
    "xhttpSettings": {
      "host": "",
      "mode": "auto",
      "path": "/",
      "headers": {},
      "noSSEHeader": false,
      "xPaddingBytes": "100-1000",
      "scMaxBufferedPosts": 30,
      "scMaxEachPostBytes": "1000000",
      "scStreamUpServerSecs": "20-80"
    },
    "finalmask": {
      "udp": [
        {
          "type": "header-dtls"
        }
      ]
    }
  }
}

Actually generated user link (missing fm= parameter):

vless://b318a3f4-2503-4656-a249-74a759dfaba6@ip:10000?encryption=none&type=xhttp&headerType=none&path=%2F&mode=auto#Vless-xHTTP-Finalmask

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions