Browse Source

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

Roger Dingledine 19 years ago
parent
commit
6483f95ce7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      contrib/tor-resolve.py

+ 1 - 1
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