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:
Diffstat (limited to 'database/db.go')
-rw-r--r--database/db.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/database/db.go b/database/db.go
index 15ff0e65..f7a590b2 100644
--- a/database/db.go
+++ b/database/db.go
@@ -42,6 +42,9 @@ func initInbound() error {
func initSetting() error {
return db.AutoMigrate(&model.Setting{})
}
+func initInboundClientIps() error {
+ return db.AutoMigrate(&model.InboundClientIps{})
+}
func initClientTraffic() error {
return db.AutoMigrate(&xray.ClientTraffic{})
}
@@ -81,6 +84,10 @@ func InitDB(dbPath string) error {
if err != nil {
return err
}
+ err = initInboundClientIps()
+ if err != nil {
+ return err
+ }
err = initClientTraffic()
if err != nil {
return err