Skip to content

Commit

Permalink
修复清理指定标签功能
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Jul 3, 2024
1 parent d8f7272 commit 6ab6a5d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion api/ip_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,13 @@ func (i *IKuai) DelIKuaiBypassIpGroup(cleanTag string) (err error) {
ids = append(ids, strconv.Itoa(d.ID))
}
} else {
if d.Comment == COMMENT_IKUAI_BYPASS {
if cleanTag == "" {
cleanTag = COMMENT_IKUAI_BYPASS
} else {
cleanTag = COMMENT_IKUAI_BYPASS + "_" + cleanTag
}

if d.Comment == cleanTag {
ids = append(ids, strconv.Itoa(d.ID))
}
}
Expand Down
8 changes: 7 additions & 1 deletion api/stream_ipport.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,13 @@ func (i *IKuai) DelIKuaiBypassStreamIpPort(cleanTag string) (err error) {
ids = append(ids, strconv.Itoa(d.ID))
}
} else {
if d.Comment == COMMENT_IKUAI_BYPASS {
if cleanTag == "" {
cleanTag = COMMENT_IKUAI_BYPASS
} else {
cleanTag = COMMENT_IKUAI_BYPASS + "_" + cleanTag
}

if d.Comment == cleanTag {
ids = append(ids, strconv.Itoa(d.ID))
}
}
Expand Down

0 comments on commit 6ab6a5d

Please sign in to comment.