Update server.py

This commit is contained in:
Namhyeon Go 2024-02-23 12:59:22 +09:00 committed by GitHub
parent 7b14da3314
commit 1ba46a6e7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -298,6 +298,10 @@ def proxy_server(webserver, port, scheme, method, url, conn, addr, data):
except Exception as e:
raise Exception("SSL negotiation failed. (%s:%s) %s" % (webserver.decode(client_encoding), str(port), str(e)))
# reload data
if is_ssl:
webserver, port, scheme, method, url = parse_first_data(data)
# https://stackoverflow.com/questions/44343739/python-sockets-ssl-eof-occurred-in-violation-of-protocol
def sock_close(sock, is_ssl = False):
#if is_ssl: