diff options
Diffstat (limited to 'whois.go')
-rw-r--r-- | whois.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -59,6 +59,9 @@ func findIPBlock(domains ...string) (pairs map[string]string, err error) { pairs = make(map[string]string, len(lines)-2) for _, line := range lines[1 : len(lines)-1] { content := strings.Split(line, "|") + if len(content) < 3 { + continue + } ipaddr := strings.TrimSpace(content[1]) ipb := strings.TrimSpace(content[2]) pairs[ipaddr] = ipb |