From 2de88bd90be8fadbe10e3c4d05659f348d3689cd Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 24 Jun 2011 17:19:24 +0000 Subject: [PATCH] minor update --- lib/controller/checks.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/controller/checks.py b/lib/controller/checks.py index be9dc5c8b..ad945eda4 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -868,11 +868,12 @@ def checkNullConnection(): return kb.nullConnection is not None def checkConnection(suppressOutput=False): - try: - socket.getaddrinfo(conf.hostname, None) - except socket.gaierror: - errMsg = "host '%s' does not exist" % conf.hostname - raise sqlmapConnectionException, errMsg + if not conf.proxy: + try: + socket.getaddrinfo(conf.hostname, None) + except socket.gaierror: + errMsg = "host '%s' does not exist" % conf.hostname + raise sqlmapConnectionException, errMsg if not suppressOutput: infoMsg = "testing connection to the target url"