| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Thu Dec 23, 2004 1:47 am Post subject: BitTornado 0.3.9b is buggy. |
|
|
Hi there.
I've tried upgrading my tracker from BitTornado 0.3.9a to 0.3.9b, but 0.3.9b doesn't work.
I haven't got the error message, but if you try to use it you'll see the output.
I can later paste the error if necessary. Though I'll have to decompress it again.
Compass. |
|
| Back to top |
|
 |
volpol Guest
|
Posted: Thu Dec 23, 2004 2:54 am Post subject: |
|
|
apply this patch: | Code: |
--- track.py 2004-12-20 12:01:22.000000000 +0100
+++ track.py.fixed 2004-12-23 02:58:00.000000000 +0100
@@ -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
|
|
|
| Back to top |
|
 |
Compass. Guest
|
Posted: Thu Dec 30, 2004 1:17 am Post subject: |
|
|
Where do I put that text?
Compass. |
|
| Back to top |
|
 |
volpol_ Guest
|
Posted: Fri Dec 31, 2004 9:06 pm Post subject: |
|
|
if you don't know how to use patch do the following:
1) go to line 174 in track.py
2) put "x is None or" (without quotes) before "not is_valid_ip(x)"
3) save changes |
|
| Back to top |
|
 |
Compass Guest
|
Posted: Wed Jan 05, 2005 9:21 am Post subject: |
|
|
Thanks volpol_. I'll try that.
Compass. |
|
| Back to top |
|
 |
|