This commit is contained in:
Alireza Ahmadi
2023-12-08 19:44:52 +01:00
parent 68ee4e003c
commit e5fc20b8ae
4 changed files with 16 additions and 19 deletions

View File

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