User Tools

Site Tools


var:deluge_trick

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

var:deluge_trick [2013/03/16 17:41]
var:deluge_trick [2013/03/16 17:41] (current)
Line 1: Line 1:
 +==== DELUGE - trick client identity ====
  
 +27.09.2010
 +
 +
 +If you use Deluge as a preferred application for torrents, you might be in need at some point to trick client identification to tracker, in order to still connect to those trackers who have a “whitelist” applications (without Deluge, of course :) )
 +
 +Because Deluge is a python application,​ the modifications can be done on the fly, very easily using a simple text editor.
 +
 +
 +=== Identify core.py ===
 +
 +Identify //core.py// for deluge (now version 1.2). This is in ubuntu distro at /​usr/​lib/​pymodules/​python2.6/​deluge/​core/​core.py for example.
 +
 +=== Hack the file ===
 +
 +<code python>
 +class Core(component.Component):​
 +    def __init__(self,​ listen_interface=None):​
 +       ...
 +        version = [3, 1, 1, 0] # this line is added
 +        ##​self.session = lt.session(lt.fingerprint("​DE",​ *version), flags=0) # this is commented out
 +        self.session = lt.session(lt.fingerprint("​AZ",​ *version), flags=0) # this identifies our Deluge as Azureus 3.1.1.0
 +        ​
 +        # Set the user agent
 +        self.settings = lt.session_settings() ​
 +        ##​self.settings.user_agent = "​Deluge %s" % deluge.common.get_version() # this is commented out
 +        self.settings.user_agent = "​Azureus 3.1.1.0"​ # # this identifies our Deluge as Azureus 3.1.1.0
 +        ​
 +</​code>​
 +
 +
 +
 +Check [[http://​wiki.theory.org/​BitTorrentSpecification#​peer_id | here]] for a list with client names and codes.
 +Check also how to [[var:​ktorrent_trick|KTorrent - trick client identity]]
var/deluge_trick.txt · Last modified: 2013/03/16 17:41 (external edit)