]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Document ClientConfig.DisableAcceptRateLimiting
authorMatt Joiner <anacrolix@gmail.com>
Mon, 21 Dec 2020 02:57:59 +0000 (13:57 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 21 Dec 2020 08:12:50 +0000 (19:12 +1100)
config.go

index afc434695da772d689d2ebd8b0ae21bb7e6199b8..f4c0f17239e5b4e95625ebe35fe0a67ffe011f73 100644 (file)
--- a/config.go
+++ b/config.go
@@ -118,6 +118,8 @@ type ClientConfig struct {
        PublicIp4 net.IP
        PublicIp6 net.IP
 
+       // Accept rate limiting affects excessive connection attempts from IPs that fail during
+       // handshakes or request torrents that we don't have.
        DisableAcceptRateLimiting bool
        // Don't add connections that have the same peer ID as an existing
        // connection for a given Torrent.