Suppress metadata extension message errors from Xunlei client
This commit is contained in:
parent
f2bb5b1c56
commit
4bcfdc8fc9
@ -934,7 +934,8 @@ func (me *Client) connectionLoop(t *torrent, c *connection) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
// That client uses its own extension IDs for outgoing message
|
// That client uses its own extension IDs for outgoing message
|
||||||
// types, which is incorrect.
|
// 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
|
return nil
|
||||||
}
|
}
|
||||||
// log.Printf("peer extension map: %#v", c.PeerExtensionIDs)
|
// log.Printf("peer extension map: %#v", c.PeerExtensionIDs)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user