]> Sergey Matveev's repositories - btrtrc.git/blobdiff - client.go
Add ClientConfig.AlwaysWantConns
[btrtrc.git] / client.go
index e7683016b2ae2e14d110b43d5626f6730ee21e64..ae40f458e1ff6d24b356e754afba00f380b45ffe 100644 (file)
--- a/client.go
+++ b/client.go
@@ -451,6 +451,9 @@ func (cl *Client) ipIsBlocked(ip net.IP) bool {
 }
 
 func (cl *Client) wantConns() bool {
+       if cl.config.AlwaysWantConns {
+               return true
+       }
        for _, t := range cl.torrents {
                if t.wantConns() {
                        return true