summaryrefslogtreecommitdiffstats
path: root/content/posts/deluge-change-useragent.rst
diff options
context:
space:
mode:
Diffstat (limited to 'content/posts/deluge-change-useragent.rst')
-rw-r--r--content/posts/deluge-change-useragent.rst25
1 files changed, 25 insertions, 0 deletions
diff --git a/content/posts/deluge-change-useragent.rst b/content/posts/deluge-change-useragent.rst
new file mode 100644
index 0000000..a963dea
--- /dev/null
+++ b/content/posts/deluge-change-useragent.rst
@@ -0,0 +1,25 @@
+Change Deluge User-Agent
+########################
+:date: 2015-04-28
+:tags: deluge,user-agent,switch
+
+For some torrents bittorrent peers seem to refuse sharing with my deluge
+daemon because it had the wrong 'user-agent' (read: Discrimination).
+
+Fortunately, on the internet nobody knows you are a dog. As long as we show
+the correct name-tag and provide some basic features we will be good to go::
+
+ vim $(find / -path '*deluge/core/core.py' )
+
+Now, change the following lines:
+
+.. code-block:: diff
+
+ 90c90
+ < self.session = lt.session(lt.fingerprint("DE", *version), flags=1)
+ ---
+ > self.session = lt.session(lt.fingerprint("UT", 3, 3, 1, 0), flags=1)
+ 97c97
+ < self.settings.user_agent = "Deluge %s" % deluge.common.get_version()
+ ---
+ > self.settings.user_agent = "uTorrent/3310(30017)"