diff options
author | Paul Duncan <pabs@pablotron.org> | 2022-02-22 21:58:26 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2022-02-22 21:58:26 -0500 |
commit | 281f6eff5acfd38cae0bd3217c36622c27389b75 (patch) | |
tree | 964ff176888be096fe2325fb594c10c70665cd50 | |
parent | f7c4aa78652fd7211c9b4f41ddc897cd956e43e0 (diff) | |
download | cvez-281f6eff5acfd38cae0bd3217c36622c27389b75.tar.bz2 cvez-281f6eff5acfd38cae0bd3217c36622c27389b75.zip |
cmd/update.go: update for new nvdmirror api
-rw-r--r-- | cmd/update.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/update.go b/cmd/update.go index fe234ed..1c88bc5 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -29,12 +29,12 @@ var updateCmd = &cobra.Command{ defer cache.Close() // custom sync config - urls := nvdmirror.Urls { - Cve11Base: "https://pmdn.org/nvdmirror", + config := nvdmirror.SyncConfig { + Cve11BaseUrl: "https://pmdn.org/nvdmirror", } // sync data - if err := nvdmirror.Sync(urls, &cache, "stuff"); err != nil { + if err := nvdmirror.Sync(config, &cache, "stuff"); err != nil { log.Error().Err(err).Msg("Sync") os.Exit(-1) } |