summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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