Made output aligned better

This commit is contained in:
Dionysus 2023-09-21 15:24:12 -04:00
parent c95e0f15f7
commit 45925adbff
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

View File

@ -77,7 +77,7 @@ func reverseDNSLookup(ip string, server string) (string, error) {
if len(names) == 0 { if len(names) == 0 {
return fmt.Sprintf("%s | %-18s | No PTR records", time.Now().Format("03:04:05 PM"), server), nil return fmt.Sprintf("%s | %-18s | No PTR records", time.Now().Format("03:04:05 PM"), server), nil
} }
return fmt.Sprintf("%s | %s | %-18s", time.Now().Format("03:04:05 PM"), server, names[0]), nil return fmt.Sprintf("%s | %-18s | %s", time.Now().Format("03:04:05 PM"), server, names[0]), nil
} }
func isNetworkError(err error) bool { func isNetworkError(err error) bool {