Skip to content

Commit

Permalink
modify summary info a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
Jozef Reisinger committed Nov 19, 2021
1 parent 3b0a2cb commit 5d4aa24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion checks/geo.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type geo struct {
}

func (g geo) Summary() string {
return fmt.Sprintf("city: %s, country: %s, ISO code: %s", check.Na(g.City), check.Na(g.Country), check.Na(g.IsoCode))
return fmt.Sprintf("city: %s, country: %s (%s)", check.Na(g.City), check.Na(g.Country), check.Na(g.IsoCode))
}

func (g geo) JsonString() (string, error) {
Expand Down
2 changes: 1 addition & 1 deletion checks/virustotal.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type virusTotal struct {
}

func (v virusTotal) Summary() string {
return fmt.Sprintf("AS onwer: %s, network: %s, SAN: %s", check.Na(v.Data.Attributes.ASowner), check.Na(v.Data.Attributes.Network), check.Na(strings.Join(v.Data.Attributes.LastHTTPScert.Extensions.SAN, ", ")))
return fmt.Sprintf("network: %s, SAN: %s", check.Na(v.Data.Attributes.Network), check.Na(strings.Join(v.Data.Attributes.LastHTTPScert.Extensions.SAN, ", ")))
}

func (v virusTotal) JsonString() (string, error) {
Expand Down

0 comments on commit 5d4aa24

Please sign in to comment.