Skip to content

Commit

Permalink
prevent results cache overwrites for Shodan.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhadfield committed Jun 29, 2024
1 parent 35f315e commit 5ac35ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/shodan/shodan.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ func fetchData(c session.Session) (*HostSearchResult, error) {
}

// load data from cache
cacheKey := fmt.Sprintf("shodan_%s_report.json", strings.ReplaceAll(c.Host.String(), ".", "_"))
cacheKey := providers.CacheProviderPrefix + ProviderName + "_" + strings.ReplaceAll(c.Host.String(), ".", "_")

var item *cache.Item

Expand Down

0 comments on commit 5ac35ba

Please sign in to comment.