2
0
mirror of synced 2025-02-24 14:48:27 +00:00

Suppress metadata extension message errors from Xunlei client

This commit is contained in:
Matt Joiner 2014-09-14 03:47:47 +10:00
parent f2bb5b1c56
commit 4bcfdc8fc9

View File

@ -934,7 +934,8 @@ func (me *Client) connectionLoop(t *torrent, c *connection) error {
if err != nil {
// That client uses its own extension IDs for outgoing message
// types, which is incorrect.
if bytes.HasPrefix(c.PeerID[:], []byte("-SD0100-")) {
if bytes.HasPrefix(c.PeerID[:], []byte("-SD0100-")) ||
strings.HasPrefix(string(c.PeerID[:]), "-XL0012-") {
return nil
}
// log.Printf("peer extension map: %#v", c.PeerExtensionIDs)