Skip to content

Commit

Permalink
fix: ct push
Browse files Browse the repository at this point in the history
  • Loading branch information
zema1 committed Oct 29, 2024
1 parent ee93cfc commit 5a60adf
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## v2.1.1 (2024-10-29)

### 新增

- 新增长亭漏洞库支持 https://stack.chaitin.com/vuldb/index
- 配置文件用户需手动添加 `chaitin``sources` 里才能生效
- 其他方式自动启用

## v2.0.0 (2024-08-24)

### 新增
Expand Down
6 changes: 6 additions & 0 deletions ctrl/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,12 @@ func (c *WatchVulnAppConfig) GetPusher() (push.TextPusher, push.RawPusher, error
return nil, nil, fmt.Errorf("init telegram error %w", err)
}
textPusher = append(textPusher, tgPusher)
case push.TypeCtInternal:
ctInternalConfig := unmarshal[push.CtInternalConfig](config)
if ctInternalConfig.Token == "" || ctInternalConfig.GroupChat == "" {
continue
}
textPusher = append(textPusher, push.NewCtInternal(&ctInternalConfig))
default:
return nil, nil, fmt.Errorf("unsupported push type: %s", pushType)
}
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
)

var log = golog.Child("[main]")
var Version = "v2.1.0"
var Version = "v2.1.1"

func main() {
golog.Default.SetLevel("info")
Expand Down

0 comments on commit 5a60adf

Please sign in to comment.