Skip to content
Snippets Groups Projects
Commit 6483f95c authored by Roger Dingledine's avatar Roger Dingledine
Browse files

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
parent 6d895645
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment