Skip to content

Commit a70e391

Browse files
committed
Fix typos
1 parent bc52e32 commit a70e391

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

cli/cli.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ type HostCheckInfo struct {
8585
}
8686

8787
type EndpointCheckInfo struct {
88-
IPAdress string `json:"ipAddress"`
88+
IPAddress string `json:"ipAddress"`
8989
Grade string `json:"grade"`
9090
GradeNum float64 `json:"gradeNum"`
9191
}
@@ -477,7 +477,7 @@ func getColoredGrades(endpoints []*sslscan.EndpointInfo) string {
477477
var result string
478478

479479
for _, endpoint := range endpoints {
480-
result += getColoredGrade(endpoint.Grade) + "{s-}/" + endpoint.IPAdress + "{!} "
480+
result += getColoredGrade(endpoint.Grade) + "{s-}/" + endpoint.IPAddress + "{!} "
481481
}
482482

483483
return result
@@ -572,7 +572,7 @@ func appendEndpointsInfo(checkInfo *HostCheckInfo, endpoints []*sslscan.Endpoint
572572
grade := getNormGrade(endpoint.Grade)
573573

574574
checkInfo.Endpoints = append(checkInfo.Endpoints, &EndpointCheckInfo{
575-
IPAdress: endpoint.IPAdress,
575+
IPAddress: endpoint.IPAddress,
576576
Grade: grade,
577577
GradeNum: gradeNumMap[grade],
578578
})

cli/details.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func printDetailedInfo(ap *sslscan.AnalyzeProgress, fromCache bool) {
7474
printCertificateInfo(info.Certs, info.Endpoints)
7575

7676
for index, endpoint := range info.Endpoints {
77-
fmtc.Printf("\n{c*} %s {!*}#%d (%s){!}\n", info.Host, index+1, endpoint.IPAdress)
77+
fmtc.Printf("\n{c*} %s {!*}#%d (%s){!}\n", info.Host, index+1, endpoint.IPAddress)
7878
printDetailedEndpointInfo(endpoint, info.Certs)
7979
}
8080
}

cli/encoder.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func encodeAsXML(checksInfo []*HostCheckInfo) {
5757
for _, endpoint := range info.Endpoints {
5858
fmt.Printf(
5959
" <endpoint ip=\"%s\" grade=\"%s\" grade=\"%.1f\" />\n",
60-
endpoint.IPAdress, endpoint.Grade, endpoint.GradeNum,
60+
endpoint.IPAddress, endpoint.Grade, endpoint.GradeNum,
6161
)
6262
}
6363

@@ -84,7 +84,7 @@ func encodeAsYAML(checksInfo []*HostCheckInfo) {
8484
fmt.Println(" -")
8585
fmt.Printf(" grade: %s\n", endpoint.Grade)
8686
fmt.Printf(" gradeNum: %.1f\n", endpoint.GradeNum)
87-
fmt.Printf(" ipAddress: \"%s\"\n", endpoint.IPAdress)
87+
fmt.Printf(" ipAddress: \"%s\"\n", endpoint.IPAddress)
8888
}
8989

9090
fmt.Printf(" host: %s\n", info.Host)

common/sslcli.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ fi
212212

213213
* Tue Oct 11 2016 Anton Novojilov <andy@essentialkaos.com> - 1.1.0-0
214214
- EK package updated to v5
215-
- SSLScan package udated to v2
215+
- SSLScan package updated to v2
216216

217217
* Fri Sep 23 2016 Anton Novojilov <andy@essentialkaos.com> - 1.0.2-0
218218
- Minor UI improvements

0 commit comments

Comments
 (0)