diff options
author | Roger Dingledine <arma@torproject.org> | 2004-11-09 09:27:34 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-11-09 09:27:34 +0000 |
commit | 6483f95ce722c1c8ae15d8e7134fc521fac896a5 (patch) | |
tree | a0bb5369afd70388a5edf711fbd9f6710091698f /contrib | |
parent | 6d895645787d5065d611d67ddd0090a09513ad04 (diff) | |
download | tor-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
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/tor-resolve.py | 2 |
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 |