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:
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() {