diff options
| author | Alireza Ahmadi <alireza7@gmail.com> | 2023-12-08 21:44:52 +0300 |
|---|---|---|
| committer | Alireza Ahmadi <alireza7@gmail.com> | 2023-12-08 21:44:52 +0300 |
| commit | e5fc20b8ae357c7ddb456a17b39ab406cc6ad585 (patch) | |
| tree | 5d39de554e578f7017550e207484334aa06d09b3 /web/service | |
| parent | 68ee4e003c7189ca9530f8c1cb70a623ab47831c (diff) | |
small fixes #1300
Diffstat (limited to 'web/service')
| -rw-r--r-- | web/service/inbound.go | 3 |
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() { |
