]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Bump protocol strings
authorMatt Joiner <anacrolix@gmail.com>
Wed, 21 Nov 2018 06:06:31 +0000 (17:06 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Wed, 21 Nov 2018 06:06:31 +0000 (17:06 +1100)
config.go

index 7e1bcdd0f92bd72e9f7c8a7b0024380331beef9e..273c40009946688d454e948bd5ba9dd569a2662b 100644 (file)
--- 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,