[or-cvs] r14560: split, reverse, join. - Thanks to Leif Ryge for being an ete (check/trunk/cgi-bin)
ioerror at seul.org
ioerror at seul.org
Mon May 5 08:32:55 UTC 2008
Author: ioerror
Date: 2008-05-05 04:32:54 -0400 (Mon, 05 May 2008)
New Revision: 14560
Modified:
check/trunk/cgi-bin/index.py
Log:
split, reverse, join. - Thanks to Leif Ryge for being an eternal critic of all things that I do with computers.
Modified: check/trunk/cgi-bin/index.py
===================================================================
--- check/trunk/cgi-bin/index.py 2008-05-05 08:19:16 UTC (rev 14559)
+++ check/trunk/cgi-bin/index.py 2008-05-05 08:32:54 UTC (rev 14560)
@@ -38,8 +38,9 @@
def isUsingTor(clientIp):
# This is the exit node ip address
# This is where we want to dynamically recieve this from Apache
- splitIp=clientIp.split('.')
- ELExitNode = splitIp[-1] + "." + splitIp[-2] + "." + splitIp[-3] + "." + splitIp[-4]
+ splitIp = clientIp.split('.')
+ splitIp.reverse()
+ ELExitNode = ".".join(splitIp)
# We'll attempt to reach this port on the Target host
ELPort = "80"
More information about the tor-commits
mailing list