From: Matt Joiner Date: Wed, 21 Nov 2018 06:06:31 +0000 (+1100) Subject: Bump protocol strings X-Git-Tag: v1.0.0~16 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=3ba91c4334780451516ca39d2abaa70d40e43650;p=btrtrc.git Bump protocol strings --- diff --git a/config.go b/config.go index 7e1bcdd0..273c4000 100644 --- a/config.go +++ b/config.go @@ -91,11 +91,11 @@ type ClientConfig struct { // Updated occasionally to when there's been some changes to client // behaviour in case other clients are assuming anything of us. See also // `bep20`. - ExtendedHandshakeClientVersion string // default "go.torrent dev 20150624" + ExtendedHandshakeClientVersion string // Peer ID client identifier prefix. We'll update this occasionally to // reflect changes to client behaviour that other clients may depend on. // Also see `extendedHandshakeClientVersion`. - Bep20 string // default "-GT0001-" + Bep20 string // Peer dial timeout to use when there are limited peers. NominalDialTimeout time.Duration @@ -137,8 +137,8 @@ func (cfg *ClientConfig) SetListenAddr(addr string) *ClientConfig { func NewDefaultClientConfig() *ClientConfig { return &ClientConfig{ HTTPUserAgent: DefaultHTTPUserAgent, - ExtendedHandshakeClientVersion: "go.torrent dev 20150624", - Bep20: "-GT0001-", + ExtendedHandshakeClientVersion: "go.torrent dev 20181121", + Bep20: "-GT0002-", NominalDialTimeout: 20 * time.Second, MinDialTimeout: 3 * time.Second, EstablishedConnsPerTorrent: 50,