From ae5ad505d04fa347eb96a0d2bfb54ff541c3b709 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Mon, 20 Apr 2026 16:05:27 +0200 Subject: add hysteria inbound Co-Authored-By: Alireza Ahmadi --- xray/api.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xray/api.go') diff --git a/xray/api.go b/xray/api.go index 2312d2e4..52dbc14d 100644 --- a/xray/api.go +++ b/xray/api.go @@ -19,6 +19,7 @@ import ( "github.com/xtls/xray-core/common/protocol" "github.com/xtls/xray-core/common/serial" "github.com/xtls/xray-core/infra/conf" + hysteriaAccount "github.com/xtls/xray-core/proxy/hysteria/account" "github.com/xtls/xray-core/proxy/shadowsocks" "github.com/xtls/xray-core/proxy/shadowsocks_2022" "github.com/xtls/xray-core/proxy/trojan" @@ -167,6 +168,10 @@ func (x *XrayAPI) AddUser(Protocol string, inboundTag string, user map[string]an Email: user["email"].(string), }) } + case "hysteria": + account = serial.ToTypedMessage(&hysteriaAccount.Account{ + Auth: user["auth"].(string), + }) default: return nil } -- cgit v1.2.3