Package: bittornado
Version: 0.3.9b-1
Severity: normal
Tags: patch

Connections to bttrack fail.  (Log shows AttributeError stack trace.)

There's more on this at http://forums.degreez.net/viewtopic.php?t=3848

(Patch attached.)

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages bittornado depends on:
ii  python                        2.3.4-5    An interactive high-level object-o

-- no debconf information
diff -ru bittornado-0.3.9b.orig/BitTornado/BT1/track.py 
bittornado-0.3.9b/BitTornado/BT1/track.py
--- bittornado-0.3.9b.orig/BitTornado/BT1/track.py      2005-02-11 
10:11:24.000000000 -0800
+++ bittornado-0.3.9b/BitTornado/BT1/track.py   2005-02-11 10:11:36.000000000 
-0800
@@ -171,7 +171,7 @@
 
 def get_forwarded_ip(headers):
     x = _get_forwarded_ip(headers)
-    if not is_valid_ip(x) or local_IPs.includes(x):
+    if x is None or not is_valid_ip(x) or local_IPs.includes(x):
         return None
     return x
 

Reply via email to