diff options
| author | Daniel Langesten <daniel.langest@gmail.com> | 2015-05-18 12:44:38 +0200 |
|---|---|---|
| committer | Daniel Langesten <daniel.langest@gmail.com> | 2015-05-18 12:44:38 +0200 |
| commit | e2bee352dc2c3fbcb4c7f25c19061b95df7adec1 (patch) | |
| tree | 3fc8c0733343cc9dfdd8af83522c22d69f66015a /whois.go | |
| parent | 167c922d9c9de72f9f02003be451b4fe8ab0f04a (diff) | |
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 |
