]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix a tor-resolve bug that could not possibly have ever worked but
authorRoger Dingledine <arma@torproject.org>
Tue, 9 Nov 2004 09:27:34 +0000 (09:27 +0000)
committerRoger Dingledine <arma@torproject.org>
Tue, 9 Nov 2004 09:27:34 +0000 (09:27 +0000)
python is too braindead^Wflexible to be able to tell us

svn:r2740

contrib/tor-resolve.py

index 31b44af9d4abbdfc26e3fb29b0de16f690062145..f6e5680b85e031d9f46fa499dce35e6884b67937 100755 (executable)
@@ -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