From e9186e6202667486e586ee63636a3fb068369977 Mon Sep 17 00:00:00 2001 From: Simon Zolin Date: Mon, 7 Oct 2019 19:27:16 +0300 Subject: [PATCH] - whois: use the first "descr" field, not the last --- home/whois.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/home/whois.go b/home/whois.go index ced0b6e2..1f7eafba 100644 --- a/home/whois.go +++ b/home/whois.go @@ -75,7 +75,9 @@ func whoisParse(data string) map[string]string { m[k] = trimValue(v) case "descr": - descr = v + if len(descr) == 0 { + descr = v + } case "netname": netname = v