Fake utorrent peer_id to avoid possible tracker ban

This commit is contained in:
shortcutme 2018-04-29 00:59:45 +02:00
parent 35cf4f3009
commit 6e598c74f5
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class ConnectionServer(object):
self.num_sent = 0
# Bittorrent style peerid
self.peer_id = "-ZN0%s-%s" % (config.version.replace(".", ""), CryptHash.random(12, "base64"))
self.peer_id = "-UT3530-%s" % CryptHash.random(12, "base64")
# Check msgpack version
if msgpack.version[0] == 0 and msgpack.version[1] < 4: