fix inbound users

This commit is contained in:
Alireza Ahmadi
2025-01-22 00:44:52 +01:00
parent 5da87cf14d
commit b6c16e1bdf
+1 -1
View File
@@ -71,7 +71,7 @@ func (s *InboundService) GetAll() (*[]map[string]interface{}, error) {
if inbound.Type == "shadowtls" && shadowtls_version < 3 {
break
}
var users []string
users := []string{}
err = db.Raw("SELECT clients.name FROM clients, json_each(clients.inbounds) as je WHERE je.value = ?", inbound.Id).Scan(&users).Error
if err != nil {
return nil, err