projects
/
btrtrc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a451bc7
)
Comments in banned torrent list
author
Matt Joiner <anacrolix@gmail.com>
Wed, 18 Mar 2015 07:35:52 +0000 (18:35 +1100)
committer
Matt Joiner <anacrolix@gmail.com>
Wed, 18 Mar 2015 07:35:52 +0000 (18:35 +1100)
client.go
patch
|
blob
|
history
diff --git
a/client.go
b/client.go
index d506f5f18bfdfd1111282419afd9875a32b54368..341cb5ec20b8eaf140e1479bde51d5678c05a690 100644
(file)
--- 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 {