diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2005-04-20 06:16:18 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2005-04-20 06:16:18 +0000 |
commit | 8673c7ec800a8bcc6da14c506081a3cb76e2b8ea (patch) | |
tree | ad3f495c08f0cc331b6958d319f699d021175c19 /net-p2p/py-kenosis-bittorrent/files/patch-BitTorrent::Rerequester.py | |
parent | Fix plist problems. (diff) |
This commit was manufactured by cvs2svn to create tag 'RELEASE_5_4_0'.release/5.4.0
Diffstat (limited to 'net-p2p/py-kenosis-bittorrent/files/patch-BitTorrent::Rerequester.py')
-rw-r--r-- | net-p2p/py-kenosis-bittorrent/files/patch-BitTorrent::Rerequester.py | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/net-p2p/py-kenosis-bittorrent/files/patch-BitTorrent::Rerequester.py b/net-p2p/py-kenosis-bittorrent/files/patch-BitTorrent::Rerequester.py deleted file mode 100644 index 49c5bd167da9..000000000000 --- a/net-p2p/py-kenosis-bittorrent/files/patch-BitTorrent::Rerequester.py +++ /dev/null @@ -1,30 +0,0 @@ ---- BitTorrent/Rerequester.py Sat Apr 3 01:10:23 2004 -+++ BitTorrent/Rerequester.py Sun Apr 18 17:03:33 2004 -@@ -5,7 +5,7 @@ - from btformats import check_peers - from bencode import bdecode - from threading import Thread, Lock --from socket import error -+from socket import error, gethostbyname - from time import time - from random import randrange - from binascii import b2a_hex -@@ -45,8 +45,7 @@ - self.url = ('%s?info_hash=%s&peer_id=%s&port=%s&key=%s' % - (url, quote(infohash), quote(myid), str(port), - b2a_hex(''.join([chr(randrange(256)) for i in xrange(4)])))) -- if ip != '': -- self.url += '&ip=' + quote(ip) -+ self.ip = ip - self.interval = interval - self.last = None - self.trackerid = None -@@ -108,6 +107,8 @@ - - def rerequest(self, url, set): - try: -+ if self.ip: -+ url += '&ip=' + gethostbyname(self.ip) - print "opening url %s" % url - h = urlopen(url) - r = h.read() |