From 48ad0300eade2eb8963371ba87dffc9a8670c0d2 Mon Sep 17 00:00:00 2001 From: wewon-backdown Date: Tue, 29 Sep 2026 21:33:05 +0400 Subject: [PATCH] API: `xray api adu` supports Hysteria (#6847) https://github.com/XTLS/Xray-core/pull/6847#issuecomment-5895325181 --------- Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com> --- main/commands/all/api/inbound_user_add.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/commands/all/api/inbound_user_add.go b/main/commands/all/api/inbound_user_add.go index 1b150bb5a..792d625eb 100644 --- a/main/commands/all/api/inbound_user_add.go +++ b/main/commands/all/api/inbound_user_add.go @@ -12,6 +12,7 @@ import ( "github.com/xtls/xray-core/core" "github.com/xtls/xray-core/infra/conf" "github.com/xtls/xray-core/infra/conf/serial" + "github.com/xtls/xray-core/proxy/hysteria" "github.com/xtls/xray-core/proxy/masque" "github.com/xtls/xray-core/proxy/shadowsocks" "github.com/xtls/xray-core/proxy/shadowsocks_2022" @@ -91,6 +92,8 @@ func extractInboundUsers(inb *core.InboundHandlerConfig) []*protocol.User { return ty.Users case *masque.ServerConfig: return ty.Users + case *hysteria.ServerConfig: + return ty.Users default: fmt.Println("unsupported inbound type") }