Skip to content

Commit b864302

Browse files
handle dnserrors in tls
1 parent d054f26 commit b864302

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

output/some/some.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ func SomeOutputCert(res *result.CertResult) string {
107107
if res.Alert != nil {
108108
ret += fmt.Sprintf("\tALERT: %d %d", res.Alert.Level, res.Alert.Description)
109109
}
110-
if res.Alert == nil || res.Alert.Level == result.AlertLevelWarning {
110+
switch {
111+
case res.DnsError != "":
112+
ret += "\tDNSERR: " + res.DnsError
113+
case res.Alert == nil || res.Alert.Level == result.AlertLevelWarning:
111114
ret += fmt.Sprintf("\t%s\t%s\t%f\t%d",
112115
res.Method,
113116
res.ProtocolVersion,

0 commit comments

Comments
 (0)