mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-07-15 08:48:08 +00:00
Update server.py
This commit is contained in:
parent
0ff6119d15
commit
7ff68396ad
|
@ -143,10 +143,12 @@ def proxy_server(webserver, port, scheme, method, url, conn, addr, data):
|
|||
try:
|
||||
print("[*] Started the request. %s" % (str(addr[0])))
|
||||
|
||||
while True:
|
||||
retry = True
|
||||
while retry:
|
||||
try:
|
||||
if scheme in [b'https', b'tls', b'ssl'] and method == b'CONNECT':
|
||||
conn, data = proxy_connect(webserver, conn)
|
||||
retry = False
|
||||
except IOError as e:
|
||||
print ("[*] Retrying SSL negotiation... (%s:%s) %s" % (webserver.decode(client_encoding), str(port), str(e)))
|
||||
except Exception as e:
|
||||
|
|
Loading…
Reference in New Issue
Block a user