]> granicus.if.org Git - transmission/commitdiff
(libT) #5274 '"copy magnet link to clipboard" doesn't include webseeds': fixed.
authorJordan Lee <jordan@transmissionbt.com>
Mon, 4 Feb 2013 18:54:38 +0000 (18:54 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Mon, 4 Feb 2013 18:54:38 +0000 (18:54 +0000)
libtransmission/torrent-magnet.c

index ca2d872d9510ba8b5092061498d68880120bd0e3..aaa156caf3bfe9312330993c54088dc963197297 100644 (file)
@@ -398,5 +398,11 @@ tr_torrentInfoGetMagnetLink (const tr_info * inf)
       tr_http_escape (s, inf->trackers[i].announce, -1, true);
     }
 
+  for (i=0; i<inf->webseedCount; i++)
+    {
+      evbuffer_add_printf (s, "%s", "&ws=");
+      tr_http_escape (s, inf->webseeds[i], -1, true);
+    }
+
   return evbuffer_free_to_str (s);
 }