mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-31 07:36:06 +00:00
Minor update
This commit is contained in:
parent
9240e05096
commit
fd97942760
3 changed files with 3 additions and 3 deletions
2
thirdparty/socks/socks.py
vendored
2
thirdparty/socks/socks.py
vendored
|
|
@ -225,7 +225,7 @@ class socksocket(socket.socket):
|
|||
if self.__proxy[3]:
|
||||
# Resolve remotely
|
||||
ipaddr = None
|
||||
req = req + chr(0x03).encode() + chr(len(destaddr)).encode() + destaddr
|
||||
req = req + chr(0x03).encode() + chr(len(destaddr)).encode() + (destaddr if isinstance(destaddr, bytes) else destaddr.encode())
|
||||
else:
|
||||
# Resolve locally
|
||||
ipaddr = socket.inet_aton(socket.gethostbyname(destaddr))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue