small changes

This commit is contained in:
Alireza Ahmadi
2024-02-22 20:35:19 +01:00
parent 7a38a2474e
commit 99e9c27d2f
6 changed files with 15 additions and 20 deletions

View File

@@ -1329,8 +1329,6 @@ func (s *InboundService) MigrationRequirements() {
}
}()
db.Migrator().DropIndex(&model.Inbound{}, "port")
// Fix inbounds based problems
var inbounds []*model.Inbound
err = tx.Model(model.Inbound{}).Where("protocol IN (?)", []string{"vmess", "vless", "trojan"}).Find(&inbounds).Error