Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96190cf commit 2de88bdCopy full SHA for 2de88bd
1 file changed
lib/controller/checks.py
@@ -868,11 +868,12 @@ def checkNullConnection():
868
return kb.nullConnection is not None
869
870
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
+ if not conf.proxy:
+ try:
+ socket.getaddrinfo(conf.hostname, None)
+ except socket.gaierror:
+ errMsg = "host '%s' does not exist" % conf.hostname
876
+ raise sqlmapConnectionException, errMsg
877
878
if not suppressOutput:
879
infoMsg = "testing connection to the target url"
0 commit comments