- whois: use the first "descr" field, not the last

This commit is contained in:
Simon Zolin 2019-10-07 19:27:16 +03:00
parent 3b9b37dde7
commit e9186e6202
1 changed files with 3 additions and 1 deletions

View File

@ -75,7 +75,9 @@ func whoisParse(data string) map[string]string {
m[k] = trimValue(v) m[k] = trimValue(v)
case "descr": case "descr":
descr = v if len(descr) == 0 {
descr = v
}
case "netname": case "netname":
netname = v netname = v