mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-23 10:38:49 +00:00
Add Deluge fingerprint.
This commit is contained in:
parent
b187d02c94
commit
b4ad65ab9b
1 changed files with 7 additions and 1 deletions
|
@ -66,9 +66,15 @@ class Core(dbus.service.Object):
|
|||
# Get config
|
||||
self.config = Config("core.conf", DEFAULT_PREFS)
|
||||
|
||||
# Create the client fingerprint
|
||||
version = []
|
||||
for value in deluge.common.get_version().split("."):
|
||||
version.append(int(value))
|
||||
fingerprint = lt.fingerprint("DE", *version)
|
||||
|
||||
# Setup the libtorrent session and listen on the configured ports
|
||||
log.debug("Starting libtorrent session..")
|
||||
self.session = lt.session()
|
||||
self.session = lt.session(fingerprint)
|
||||
log.debug("Listening on %i-%i", self.config.get("listen_ports")[0],
|
||||
self.config.get("listen_ports")[1])
|
||||
self.session.listen_on(self.config.get("listen_ports")[0],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue