Ticket #1150: agent-include-libtorrent-version.patch

File agent-include-libtorrent-version.patch, 700 bytes (added by fuhry, 11 years ago)

Same patch, but not gzipped

  • deluge/core/core.py

     
    8888 
    8989        # Set the user agent 
    9090        self.settings = lt.session_settings() 
    91         self.settings.user_agent = "Deluge %s" % deluge.common.get_version() 
     91        self.settings.user_agent = "Deluge %(deluge_version)s libtorrent %(lt_version)s" % \ 
     92                                     { 'deluge_version': deluge.common.get_version(), 
     93                                       'lt_version': self.get_libtorrent_version() } 
    9294 
    9395        # Set session settings 
    9496        self.settings.send_redundant_have = True