mirror of https://github.com/daffainfo/nuclei.git
removed nucleiVersion var as unused
parent
ee6b1bef61
commit
5959daa58f
|
@ -90,7 +90,6 @@ func (r *Runner) updateTemplates() error { // TODO this method does more than ju
|
|||
return nil
|
||||
}
|
||||
|
||||
client.InitNucleiVersion(config.Version)
|
||||
r.fetchLatestVersionsFromGithub(configDir) // also fetch the latest versions
|
||||
|
||||
ctx := context.Background()
|
||||
|
|
|
@ -13,8 +13,6 @@ const (
|
|||
IgnoreCall = "ignore"
|
||||
)
|
||||
|
||||
var nucleiVersion string
|
||||
|
||||
// LatestVersion is the latest version info for nuclei and templates repos
|
||||
type LatestVersion struct {
|
||||
Nuclei string
|
||||
|
@ -22,10 +20,6 @@ type LatestVersion struct {
|
|||
IgnoreHash string
|
||||
}
|
||||
|
||||
func InitNucleiVersion(version string) {
|
||||
nucleiVersion = version
|
||||
}
|
||||
|
||||
// GetLatestNucleiTemplatesVersion returns the latest version info for nuclei and templates repos
|
||||
func GetLatestNucleiTemplatesVersion() (*LatestVersion, error) {
|
||||
resp, err := retryablehttp.DefaultClient().Get(RegisterServer + VersionsCall)
|
||||
|
|
Loading…
Reference in New Issue