summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-11-09 09:27:34 +0000
committerRoger Dingledine <arma@torproject.org>2004-11-09 09:27:34 +0000
commit6483f95ce722c1c8ae15d8e7134fc521fac896a5 (patch)
treea0bb5369afd70388a5edf711fbd9f6710091698f
parent6d895645787d5065d611d67ddd0090a09513ad04 (diff)
downloadtor-6483f95ce722c1c8ae15d8e7134fc521fac896a5.tar.gz
tor-6483f95ce722c1c8ae15d8e7134fc521fac896a5.zip
fix a tor-resolve bug that could not possibly have ever worked but
python is too braindead^Wflexible to be able to tell us svn:r2740
-rwxr-xr-xcontrib/tor-resolve.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tor-resolve.py b/contrib/tor-resolve.py
index 31b44af9d4..f6e5680b85 100755
--- a/contrib/tor-resolve.py
+++ b/contrib/tor-resolve.py
@@ -40,7 +40,7 @@ def socks5ResolveRequest(hostname):
port = 0
atype = 0x03
reqheader = struct.pack("!BBBB",version, command, rsv, atype)
- portstr = struct.pach("!H",port)
+ portstr = struct.pack("!H",port)
return "%s%s\0%s"%(reqheader,hostname,port)
def socks5ParseResponse(r):
if len(r)<8: return None