diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2026-04-20 17:05:27 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2026-04-20 17:05:27 +0300 |
| commit | ae5ad505d04fa347eb96a0d2bfb54ff541c3b709 (patch) | |
| tree | 54a8088e98e15868238be54b063bb051ab84fcb0 /database/model/model.go | |
| parent | c188056f64be268dda8f7c16e23f7ef9c90d014f (diff) | |
add hysteria inbound
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'database/model/model.go')
| -rw-r--r-- | database/model/model.go | 8 |
1 files changed, 5 insertions, 3 deletions
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 |
