Add libtorrent version to user_agent string
Example: Deluge/1.3.900-dev Libtorrent/0.15.5
This commit is contained in:
parent
edb0c2e71d
commit
79c9dd3076
@ -88,7 +88,9 @@ class Core(component.Component):
|
||||
|
||||
# Set the user agent
|
||||
self.settings = lt.session_settings()
|
||||
self.settings.user_agent = "Deluge %s" % deluge.common.get_version()
|
||||
self.settings.user_agent = "Deluge/%(deluge_version)s Libtorrent/%(lt_version)s" % \
|
||||
{ 'deluge_version': deluge.common.get_version(),
|
||||
'lt_version': self.get_libtorrent_version().rpartition(".")[0] }
|
||||
|
||||
# Set session settings
|
||||
self.settings.send_redundant_have = True
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user