Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
tongchengbin committed Jan 2, 2024
1 parent 6585d1d commit 805acbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/finger/banner.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func mergeMaps(map1, map2 map[string]map[string]string) map[string]map[string]st
func (f *AppFinger) MatchURI(uri string) (*Banner, map[string]map[string]string) {
banners, err := Request(uri, f.timeout, f.Proxy, f.options.DisableIcon)
var fingerprints map[string]map[string]string
if err != nil && banners == nil {
if err != nil && (banners == nil || len(banners) == 0) {
gologger.Warning().Msg(err.Error())
return nil, nil
}
Expand Down

0 comments on commit 805acbe

Please sign in to comment.