mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-09 08:00:36 +03:00
minor update
This commit is contained in:
parent
96190cf594
commit
2de88bd90b
|
@ -868,11 +868,12 @@ def checkNullConnection():
|
||||||
return kb.nullConnection is not None
|
return kb.nullConnection is not None
|
||||||
|
|
||||||
def checkConnection(suppressOutput=False):
|
def checkConnection(suppressOutput=False):
|
||||||
try:
|
if not conf.proxy:
|
||||||
socket.getaddrinfo(conf.hostname, None)
|
try:
|
||||||
except socket.gaierror:
|
socket.getaddrinfo(conf.hostname, None)
|
||||||
errMsg = "host '%s' does not exist" % conf.hostname
|
except socket.gaierror:
|
||||||
raise sqlmapConnectionException, errMsg
|
errMsg = "host '%s' does not exist" % conf.hostname
|
||||||
|
raise sqlmapConnectionException, errMsg
|
||||||
|
|
||||||
if not suppressOutput:
|
if not suppressOutput:
|
||||||
infoMsg = "testing connection to the target url"
|
infoMsg = "testing connection to the target url"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user