update pack

This commit is contained in:
MHSanaei committed 2023-02-16 19:28:20 +03:30
1 parent 30611383de
commit fe9844b51b
18 files changed
+150 -82

No files matched your search

+1 -1
View File
@@ -39,4 +39,4 @@ jobs:
tag: ${{ github.ref }}
file: x-ui-linux-amd64.tar.gz
asset_name: x-ui-linux-amd64.tar.gz
prerelease: true
prerelease: true
+1 -1
View File
@@ -1 +1 @@
1.0.4
1.0.5
+5 -11
View File
@@ -1,15 +1,16 @@
package database
import (
"gorm.io/driver/sqlite"
"gorm.io/gorm"
"gorm.io/gorm/logger"
"io/fs"
"os"
"path"
"x-ui/config"
"x-ui/xray"
"x-ui/database/model"
"x-ui/xray"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
"gorm.io/gorm/logger"
)
var db *gorm.DB
@@ -41,9 +42,6 @@ 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{})
}
@@ -83,10 +81,6 @@ func InitDB(dbPath string) error {
if err != nil {
return err
}
err = initInboundClientIps()
if err != nil {
return err
}
err = initClientTraffic()
if err != nil {
return err
Loaded 3 of 18 files, more files were not shown because too many files have changed in this diff. Show more