Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2de88bd

Browse files
committed
minor update
1 parent 96190cf commit 2de88bd

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

lib/controller/checks.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -868,11 +868,12 @@ def checkNullConnection():
868868
return kb.nullConnection is not None
869869

870870
def checkConnection(suppressOutput=False):
871-
try:
872-
socket.getaddrinfo(conf.hostname, None)
873-
except socket.gaierror:
874-
errMsg = "host '%s' does not exist" % conf.hostname
875-
raise sqlmapConnectionException, errMsg
871+
if not conf.proxy:
872+
try:
873+
socket.getaddrinfo(conf.hostname, None)
874+
except socket.gaierror:
875+
errMsg = "host '%s' does not exist" % conf.hostname
876+
raise sqlmapConnectionException, errMsg
876877

877878
if not suppressOutput:
878879
infoMsg = "testing connection to the target url"

0 commit comments

Comments
 (0)