diff --git a/checker/report.go b/checker/report.go index a7144fc..8cd2c02 100644 --- a/checker/report.go +++ b/checker/report.go @@ -89,19 +89,19 @@ type reportSSHFPRecord struct { } type reportEndpoint struct { - Address string - Host string - Port uint16 - IsIPv6 bool - DialFailed bool - Banner string - SoftwareVer string - Vendor string - ElapsedMS int64 - Error string - StatusLabel string - StatusClass string - AnyFail bool + Address string + Host string + Port uint16 + IsIPv6 bool + DialFailed bool + Banner string + SoftwareVer string + Vendor string + ElapsedMS int64 + Error string + StatusLabel string + StatusClass string + AnyFail bool HostKeys []reportHostKey AlgoTables []reportAlgoTable @@ -265,16 +265,16 @@ func buildReportData(d *SSHData, states []sdk.CheckState) reportView { for _, ep := range d.Endpoints { re := reportEndpoint{ - Address: ep.Addr(), - Host: ep.Host, - Port: ep.Port, - IsIPv6: ep.IP != nil && ep.IP.To4() == nil, - DialFailed: ep.Stage == "dial", - Banner: ep.Banner, - SoftwareVer: ep.SoftVer, - Vendor: ep.Vendor, - ElapsedMS: ep.ElapsedMS, - Error: ep.Error, + Address: ep.Addr(), + Host: ep.Host, + Port: ep.Port, + IsIPv6: ep.IP != nil && ep.IP.To4() == nil, + DialFailed: ep.Stage == "dial", + Banner: ep.Banner, + SoftwareVer: ep.SoftVer, + Vendor: ep.Vendor, + ElapsedMS: ep.ElapsedMS, + Error: ep.Error, } if ep.IP != nil && ep.IP.To4() == nil { v.AnyIPv6 = true diff --git a/checker/types.go b/checker/types.go index 03356ff..b520c78 100644 --- a/checker/types.go +++ b/checker/types.go @@ -133,8 +133,8 @@ func (p SSHProbe) Addr() string { // HostKeyInfo captures an observed host key in its SSH wire format. type HostKeyInfo struct { - Type string `json:"type"` // e.g. "ssh-ed25519" - RawKey []byte `json:"key"` // SSH wire format (ssh.PublicKey.Marshal()) + Type string `json:"type"` // e.g. "ssh-ed25519" + RawKey []byte `json:"key"` // SSH wire format (ssh.PublicKey.Marshal()) } // Issue is a single SSH finding surfaced to consumers.