Skip to content

API: xray api adu supports Hysteria - #6847

Merged
RPRX merged 1 commit into
XTLS:mainfrom
wewon-backdown:main
Sep 29, 2026
Merged

RPRX merged 1 commit into
XTLS:mainfrom
wewon-backdown:main

Conversation

@wewon-backdown

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds support for *hysteria.ServerConfig in extractInboundUsers within main/commands/all/api/inbound_user_add.go.

Why is this needed?

With this change, users can be dynamically added to Hysteria 2 inbounds via xray api adu.

Verification

xray api adu:

{
  "inbounds": [
    {
      "tag": "hysteria-in",
      "port": 443,
      "protocol": "hysteria",
      "settings": {
        "version": 2,
        "clients": [
          {
            "auth": "password",
            "email": "[email protected]"
          }
        ]
      }
    }
  ]
}
Result:
processing inbound: hysteria-in
add user: [email protected]
result: ok
Added 1 user(s) in total.

@RPRX
RPRX requested a review from LjhAUMEM September 27, 2026 21:58
@RPRX

RPRX commented Sep 27, 2026

Copy link
Copy Markdown
Member

@LjhAUMEM

@RPRX

RPRX commented Sep 29, 2026

Copy link
Copy Markdown
Member

缺了这个咋这么久了没人提一下

@RPRX RPRX changed the title Add support for Hysteria inbound user configuration API: xray api adu supports Hysteria Sep 29, 2026
@RPRX
RPRX merged commit af28156 into XTLS:main Sep 29, 2026
RPRX pushed a commit that referenced this pull request Sep 29, 2026
RPRX added a commit that referenced this pull request Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants