#! /bin/sh /usr/share/dpatch/dpatch-run ## 18_fix_launchmany_encrypter.dpatch by Cameron Dale ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Fix a bug in the Encrypter that dropped all launchmany handled ## DP: connections due to not sending the headers properly. ## DP: Debian Bug #422098, fix found in BitTornado CVS. @DPATCH@ --- bittornado.orig/BitTornado/BT1/Encrypter.py +++ bittornado/BitTornado/BT1/Encrypter.py @@ -91,7 +91,9 @@ else: self.encrypted = False self.options = options - self.write(self.Encoder.my_id) + self.write(chr(len(protocol_name)) + protocol_name + + option_pattern + + self.Encoder.download_id + self.Encoder.my_id ) self.next_len, self.next_func = 20, self.read_peer_id else: self.encrypted = None # don't know yet