This commit is contained in:
Matt Joiner 2015-03-09 17:36:07 +11:00
parent 36c6283a94
commit a583c4a914
1 changed files with 1 additions and 2 deletions

View File

@ -92,8 +92,7 @@ func ParseBlocklistP2PLine(l []byte) (r Range, ok bool, err error) {
if len(l) == 0 || bytes.HasPrefix(l, []byte("#")) {
return
}
// TODO: Something tells me this will end badly when IPv6 blocklists are
// added.
// TODO: Check this when IPv6 blocklists are available.
colon := bytes.LastIndexAny(l, ":")
if colon == -1 {
err = errors.New("missing colon")