mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 13:14:13 +03:00
looks nicer (though --tor is implicitly converted into --proxy)
This commit is contained in:
parent
aa83fe5c66
commit
c4cb367e65
|
@ -868,7 +868,7 @@ def checkNullConnection():
|
||||||
return kb.nullConnection is not None
|
return kb.nullConnection is not None
|
||||||
|
|
||||||
def checkConnection(suppressOutput=False):
|
def checkConnection(suppressOutput=False):
|
||||||
if not conf.proxy:
|
if not any([conf.proxy, conf.tor]):
|
||||||
try:
|
try:
|
||||||
socket.getaddrinfo(conf.hostname, None)
|
socket.getaddrinfo(conf.hostname, None)
|
||||||
except socket.gaierror:
|
except socket.gaierror:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user