Add comments to some ClientConfig fields
This commit is contained in:
parent
a8787e6632
commit
d493604adc
|
@ -98,7 +98,9 @@ type ClientConfig struct {
|
|||
MinDialTimeout time.Duration
|
||||
EstablishedConnsPerTorrent int
|
||||
HalfOpenConnsPerTorrent int
|
||||
// Maximum number of peer addresses in reserve.
|
||||
TorrentPeersHighWater int
|
||||
// Minumum number of peers before effort is made to obtain more peers.
|
||||
TorrentPeersLowWater int
|
||||
|
||||
// Limit how long handshake can take. This is to reduce the lingering
|
||||
|
@ -106,10 +108,14 @@ type ClientConfig struct {
|
|||
// are obtained with 60s timeout, and 5% of unsuccessful handshakes.
|
||||
HandshakesTimeout time.Duration
|
||||
|
||||
// The IP addresses as our peers should see them. May differ from the
|
||||
// local interfaces due to NAT or other network configurations.
|
||||
PublicIp4 net.IP
|
||||
PublicIp6 net.IP
|
||||
|
||||
DisableAcceptRateLimiting bool
|
||||
// Don't add connections that have the same peer ID as an existing
|
||||
// connection for a given Torrent.
|
||||
dropDuplicatePeerIds bool
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue