1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 05_bttrack_connerr_fix.dpatch by Micah Anderson <micah@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Connections to bttrack fail (log shows AttributeError stack trace)
6
## DP: http://forums.degreez.net/viewtopic.php?t=3848
10
diff -urNad trunk~/BitTornado/BT1/track.py trunk/BitTornado/BT1/track.py
11
--- trunk~/BitTornado/BT1/track.py 2006-03-30 14:26:45.000000000 -0800
12
+++ trunk/BitTornado/BT1/track.py 2006-03-30 14:33:37.000000000 -0800
15
def get_forwarded_ip(headers):
16
x = _get_forwarded_ip(headers)
17
- if not is_valid_ip(x) or local_IPs.includes(x):
18
+ if x is None or not is_valid_ip(x) or local_IPs.includes(x):