]> Sergey Matveev's repositories - btrtrc.git/commitdiff
TODO
authorMatt Joiner <anacrolix@gmail.com>
Mon, 9 Mar 2015 06:36:07 +0000 (17:36 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 9 Mar 2015 06:36:07 +0000 (17:36 +1100)
iplist/iplist.go

index 5585909bed393b78e7603a5b86b7d3f1bad36be6..958af5a94d5fe00897373748e3164e73075cc9f8 100644 (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")