From b6c16e1bdf40d11e67e73be608ace7e6df31fc77 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Wed, 22 Jan 2025 00:44:52 +0100 Subject: [PATCH] fix inbound users --- backend/service/inbounds.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/service/inbounds.go b/backend/service/inbounds.go index 1ff63a0..c3f1dfb 100644 --- a/backend/service/inbounds.go +++ b/backend/service/inbounds.go @@ -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