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:
authorAlireza Ahmadi <alireza7@gmail.com>2023-12-08 21:44:52 +0300
committerAlireza Ahmadi <alireza7@gmail.com>2023-12-08 21:44:52 +0300
commite5fc20b8ae357c7ddb456a17b39ab406cc6ad585 (patch)
tree5d39de554e578f7017550e207484334aa06d09b3 /web/service
parent68ee4e003c7189ca9530f8c1cb70a623ab47831c (diff)
small fixes #1300
Diffstat (limited to 'web/service')
-rw-r--r--web/service/inbound.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/service/inbound.go b/web/service/inbound.go
index 58a3de9f..73dd17e5 100644
--- a/web/service/inbound.go
+++ b/web/service/inbound.go
@@ -1004,7 +1004,8 @@ func (s *InboundService) GetInboundTags() (string, error) {
if err != nil && err != gorm.ErrRecordNotFound {
return "", err
}
- return "[\"" + strings.Join(inboundTags, "\", \"") + "\"]", nil
+ tags, _ := json.Marshal(inboundTags)
+ return string(tags), nil
}
func (s *InboundService) MigrationRemoveOrphanedTraffics() {