1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 17_fix_NatCheck_bufferlen_error.dpatch by <camrdale@gmail.com>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Fix a syntax error, see http://forums.degreez.net/viewtopic.php?p=28164
8
--- bittornado.orig/BitTornado/BT1/NatCheck.py
9
+++ bittornado/BitTornado/BT1/NatCheck.py
11
self.next_len, self.next_func = x
12
if self.next_len < 0: # already checked buffer
13
return # wait for additional data
14
- if self.bufferlen is not None:
18
def connection_lost(self, connection):