From 3ba91c4334780451516ca39d2abaa70d40e43650 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 21 Nov 2018 17:06:31 +1100 Subject: [PATCH] Bump protocol strings --- config.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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, -- 2.48.1