Last active
March 7, 2017 21:08
-
-
Save g-k/28278a32b3c3b422cb486b2f8537f7b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -372,13 +372,15 @@ def main(argv): | |
try: | |
# Wait for ZAP to start | |
- zap = ZAPv2(proxies={'http': 'http://' + zap_ip + ':' + str(port), 'https': 'http://' + zap_ip + ':' + str(port)}) | |
+ zap = ZAPv2(proxies={'http': 'http://' + 'localhost' + ':' + str(port), 'https': 'http://' + 'localhost' + ':' + str(port)}) | |
for x in range(0, timeout): | |
try: | |
logging.debug ('ZAP Version ' + zap.core.version) | |
logging.debug ('Took ' + str(x) + ' seconds') | |
break | |
- except IOError: | |
+ except IOError as e: | |
+ logging.debug('IOError waiting for ZAP to start: %s' % e) | |
time.sleep(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pip install -v -e 'git+https://github.com/zaproxy/zap-api-python.git@master#egg=python-owasp-zap-v2.4'