mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-22 14:23:04 +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
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ def socks5ResolveRequest(hostname):
|
||||||
port = 0
|
port = 0
|
||||||
atype = 0x03
|
atype = 0x03
|
||||||
reqheader = struct.pack("!BBBB",version, command, rsv, atype)
|
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)
|
return "%s%s\0%s"%(reqheader,hostname,port)
|
||||||
def socks5ParseResponse(r):
|
def socks5ParseResponse(r):
|
||||||
if len(r)<8: return None
|
if len(r)<8: return None
|
||||||
|
|
Loading…
Add table
Reference in a new issue