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 --- database/model/model.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'database/model/model.go') diff --git a/database/model/model.go b/database/model/model.go index 63f4a1b4..5fa934c0 100644 --- a/database/model/model.go +++ b/database/model/model.go @@ -21,6 +21,7 @@ const ( Shadowsocks Protocol = "shadowsocks" Mixed Protocol = "mixed" WireGuard Protocol = "wireguard" + Hysteria Protocol = "hysteria" ) // User represents a user account in the 3x-ui panel. @@ -118,10 +119,11 @@ type CustomGeoResource struct { // Client represents a client configuration for Xray inbounds with traffic limits and settings. type Client struct { - ID string `json:"id"` // Unique client identifier + ID string `json:"id,omitempty"` // Unique client identifier Security string `json:"security"` // Security method (e.g., "auto", "aes-128-gcm") - Password string `json:"password"` // Client password - Flow string `json:"flow"` // Flow control (XTLS) + Password string `json:"password,omitempty"` // Client password + Flow string `json:"flow,omitempty"` // Flow control (XTLS) + Auth string `json:"auth,omitempty"` // Auth password (Hysteria) Email string `json:"email"` // Client email identifier LimitIP int `json:"limitIp"` // IP limit for this client TotalGB int64 `json:"totalGB" form:"totalGB"` // Total traffic limit in GB -- cgit v1.2.3