Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
JKme committed Oct 9, 2021
1 parent 8c7cc90 commit 365f2c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cubelib/probeTask.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ func StartProbeTask(opt *model.ProbeOptions, globalopts *model.GlobalOptions) {
log.Error(err)
}
pluginList := validPlugin(opt.ScanPlugin)
if !util.Subset(pluginList, Plugins.ProbeKeys) && !util.Subset(pluginList, Plugins.ProbeFuncExclude) {
//&& !util.Subset(pluginList, Plugins.ProbeFuncExclude)
if !util.Subset(pluginList, append([]string{}, append(Plugins.ProbeKeys, Plugins.ProbeFuncExclude...)...) ) {
log.Errorf("plugins not found: %s", pluginList)
}
log.Infof("Loading plugin: %s", strings.Join(pluginList, ","))
Expand Down

0 comments on commit 365f2c1

Please sign in to comment.