mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
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:
parent
6d89564578
commit
6483f95ce7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user