From c413ed7963d6a37d1b73813085490a8764edbbcd Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 18 Mar 2015 18:35:52 +1100 Subject: [PATCH] Comments in banned torrent list --- client.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client.go b/client.go index d506f5f1..341cb5ec 100644 --- a/client.go +++ b/client.go @@ -458,6 +458,9 @@ func (cl *Client) initBannedTorrents() error { scanner := bufio.NewScanner(f) cl.bannedTorrents = make(map[InfoHash]struct{}) for scanner.Scan() { + if strings.HasPrefix(strings.TrimSpace(scanner.Text()), "#") { + continue + } var ihs string n, err := fmt.Sscanf(scanner.Text(), "%x", &ihs) if err != nil {