]> Sergey Matveev's repositories - btrtrc.git/blobdiff - client.go
Make IPBlockList accessible from Client
[btrtrc.git] / client.go
index a111b54b1487d1b120614f2400ed28c3644409e0..55bb9aca03c234280fae11929cf558ee80bb0d01 100644 (file)
--- a/client.go
+++ b/client.go
@@ -124,8 +124,12 @@ type Client struct {
        handshaking int
 
        torrents map[InfoHash]*torrent
+}
 
-       dataWaits map[*torrent][]dataWait
+func (me *Client) IPBlockList() *iplist.IPList {
+       me.mu.Lock()
+       defer me.mu.Unlock()
+       return me.ipBlockList
 }
 
 func (me *Client) SetIPBlockList(list *iplist.IPList) {