Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/xray
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2026-04-20 17:05:27 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2026-04-20 17:05:27 +0300
commitae5ad505d04fa347eb96a0d2bfb54ff541c3b709 (patch)
tree54a8088e98e15868238be54b063bb051ab84fcb0 /xray
parentc188056f64be268dda8f7c16e23f7ef9c90d014f (diff)
add hysteria inbound
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'xray')
-rw-r--r--xray/api.go5
1 files changed, 5 insertions, 0 deletions
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
}