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
This commit is contained in:
Roger Dingledine 2004-11-09 09:27:34 +00:00
parent 6d89564578
commit 6483f95ce7

View File

@ -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