projects
/
btrtrc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90b2761
)
Send supportcrypto=1 to HTTP trackers
author
Matt Joiner <anacrolix@gmail.com>
Fri, 27 Mar 2015 06:22:42 +0000 (17:22 +1100)
committer
Matt Joiner <anacrolix@gmail.com>
Fri, 27 Mar 2015 06:22:42 +0000 (17:22 +1100)
tracker/http.go
patch
|
blob
|
history
diff --git
a/tracker/http.go
b/tracker/http.go
index 97a045a98609c31ed218ac22ebc1747bd4849fa1..59e9b9aec6df749e568cf8caace2441a9ded4a58 100644
(file)
--- a/
tracker/http.go
+++ b/
tracker/http.go
@@
-69,6
+69,8
@@
func (me *client) Announce(ar *AnnounceRequest) (ret AnnounceResponse, err error
}
// http://stackoverflow.com/questions/17418004/why-does-tracker-server-not-understand-my-request-bittorrent-protocol
q.Set("compact", "1")
+ // According to https://wiki.vuze.com/w/Message_Stream_Encryption.
+ q.Set("supportcrypto", "1")
var reqURL url.URL = me.url
reqURL.RawQuery = q.Encode()
resp, err := http.Get(reqURL.String())