Skip to content

Browser Dialer ignores xhttp sessionId and seqStr params #5739

Closed

Description

@w35th

Integrity requirements

  • I have read all the comments in the issue template and ensured that this issue meet the requirements.
  • I confirm that I have read the documentation, understand the meaning of all the configuration items I wrote, and did not pile up seemingly useful options or default values.
  • I provided the complete config and logs, rather than just providing the truncated parts based on my own judgment.
  • I searched issues and did not find any similar issues.
  • The problem can be successfully reproduced in the latest Release

Description

There is no way to pass sessionId+seqStr from xhttp (packet-up) client to the server via the browser dialer. It appears that sessionId+seqStr should be handled the same way as xPadding in the BrowserDialerClient.OpenStream and BrowserDialerClient.PostPacket methods.

Image Image

Reproduction Method

  1. Start Browser Dialer in any browser
  2. Create vless tls(for dialer) + xhttp + packet-up client with ANY valid combination of the "sessionPlacement", "sessionKey", "seqPlacement", "seqKey" parameters
  3. You can see (in server logs or browser inspect mode) that browser dialer hasn't been received (and send) any session\seq parameters in any way

Client config

"streamSettings": {
"network": "xhttp",
"security": "tls",
"tlsSettings": {
  "allowInsecure": false,
  "serverName": "example.com",
  "alpn": [
    "h2"
  ],
  "fingerprint": "chrome"
},
"xhttpSettings": {
  "path": "/api/example/",
  "host": "example.com",
  "mode": "packet-up",
  "extra": {
    "headers": {
      "Authorization": "Bearer 111111-1111-1111-1111-111111111111"
    },
    "noGRPCHeader": true,
    "XPaddingMethod": "repeat-x",
    "XPaddingHeader": "X-Padding",
    "XPaddingPlacement": "queryInHeader",
    "XPaddingKey": "x_padding",
    "xPaddingObfsMode": false,
    "sessionPlacement": "header",
    "sessionKey": "Hsession",
    "seqPlacement": "header",
    "seqKey": "Hseq",
    "xmux": {
      "maxConcurrency": "10-20",
      "cMaxReuseTimes": "100-200",
      "hMaxRequestTimes": "400-800",
      "hMaxReusableSecs": "900-1800",
      "hKeepAlivePeriod": 0
    }
  }
}
}

Server config

"streamSettings": {
    "network": "xhttp",
    "security": "tls",
    "tlsSettings": {
        "serverName": "example.com",
        "certificates": [
            {
                "certificateFile": "/etc/letsencrypt/live/example.com/fullchain.pem",
                "keyFile": "/etc/letsencrypt/live/example.com/privkey.pem"
            }
        ],
        "minVersion": "1.2",
        "maxVersion": "1.3",
        "alpn": ["h2"],
        "allowInsecure": false
    },
    "xhttpSettings": {
        "mode": "packet-up",
        "host": "example.com",
        "path": "/api/example/",
        "extra": {
            "XPaddingMethod":"repeat-x",
            "XPaddingHeader":"X-Padding",
            "XPaddingPlacement":"queryInHeader",
            "XPaddingKey": "x_padding",
            "xPaddingObfsMode": false,
            "sessionPlacement": "header",
            "sessionKey": "Hsession",
            "seqPlacement": "header",
            "seqKey": "Hseq",
            "headers": {
                "Authorization": "Bearer 111111-1111-1111-1111-111111111111"
            },
            "noSSEHeader": true,
            "scMaxEachPostBytes": "60000-90000",
            "scMaxBufferedPosts": 20
        }
    }
}

Client log

No log needed

Server log

No log needed

Activity

  1. Fangliding commented on Feb 28, 2026

    @Fangliding
    Member

    try #5720 ?

  2. w35th commented on Feb 28, 2026

    @w35th
    Author

    Thank you, the code looks correct: sessionId and seqStr are not ignored for BlowserDialer. I have no oppotunity to test it right now, but I'm sure this pull request will fix my problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions