From 6483f95ce722c1c8ae15d8e7134fc521fac896a5 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Tue, 9 Nov 2004 09:27:34 +0000 Subject: 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 --- contrib/tor-resolve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib') 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 -- cgit v1.2.3-54-g00ecf