mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-02-06 06:55:00 +00:00
Update server.py
This commit is contained in:
parent
afc974ae37
commit
60bcc14a93
|
@ -167,6 +167,9 @@ def proxy_connect(webserver, conn):
|
|||
hostname = webserver.decode(client_encoding)
|
||||
certpath = "%s/%s.crt" % (certdir.rstrip('/'), hostname)
|
||||
|
||||
if not os.path.exists(certdir):
|
||||
os.makedirs(certdir)
|
||||
|
||||
# https://stackoverflow.com/questions/24055036/handle-https-request-in-proxy-server-by-c-sharp-connect-tunnel
|
||||
conn.send(b'HTTP/1.1 200 Connection Established\r\n\r\n')
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user