feat(detector/cve): new support for fortinet data feed (#1736)

This commit is contained in:
MaineK00n
2023-09-25 16:19:10 +09:00
committed by GitHub
parent 048e204b33
commit 78b52d6a7f
9 changed files with 186 additions and 97 deletions

View File

@@ -76,7 +76,7 @@ func (h VulsHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
}
logging.Log.Infof("Fill CVE detailed with CVE-DB")
if err := detector.FillCvesWithNvdJvn(&r, config.Conf.CveDict, config.Conf.LogOpts); err != nil {
if err := detector.FillCvesWithNvdJvnFortinet(&r, config.Conf.CveDict, config.Conf.LogOpts); err != nil {
logging.Log.Errorf("Failed to fill with CVE: %+v", err)
http.Error(w, err.Error(), http.StatusServiceUnavailable)
}