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
diff options
context:
space:
mode:
authorMHSanaei <33454419+MHSanaei@users.noreply.github.com>2023-02-28 22:54:29 +0300
committerMHSanaei <33454419+MHSanaei@users.noreply.github.com>2023-02-28 22:54:29 +0300
commit5317df21f3923bfa771ed6008d5b0f5f8911e498 (patch)
tree3109ee9abe5bf8cf24eef806f033c6d0e5dd160f /database/model
parent1a4ba4afd64531c466e5e4a0af7b45bcb3247339 (diff)
ip limit + export links
Diffstat (limited to 'database/model')
-rw-r--r--database/model/model.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/database/model/model.go b/database/model/model.go
index 25e0cd41..f0036bdb 100644
--- a/database/model/model.go
+++ b/database/model/model.go
@@ -43,6 +43,11 @@ type Inbound struct {
Tag string `json:"tag" form:"tag" gorm:"unique"`
Sniffing string `json:"sniffing" form:"sniffing"`
}
+type InboundClientIps struct {
+ Id int `json:"id" gorm:"primaryKey;autoIncrement"`
+ ClientEmail string `json:"clientEmail" form:"clientEmail" gorm:"unique"`
+ Ips string `json:"ips" form:"ips"`
+}
func (i *Inbound) GenXrayInboundConfig() *xray.InboundConfig {
listen := i.Listen
@@ -70,6 +75,7 @@ type Client struct {
ID string `json:"id"`
AlterIds uint16 `json:"alterId"`
Email string `json:"email"`
+ LimitIP int `json:"limitIp"`
Security string `json:"security"`
TotalGB int64 `json:"totalGB" form:"totalGB"`
ExpiryTime int64 `json:"expiryTime" form:"expiryTime"`