Fixed authentication with SSL (Issue #2)
This commit is contained in:
parent
33e3ab3b8b
commit
6cc404bbea
1 changed files with 1 additions and 1 deletions
|
@ -538,7 +538,7 @@ def run():
|
|||
if not SSL_CERTIFICATE:
|
||||
httpd = HTTPServer(server_address, Handler)
|
||||
else:
|
||||
httpd = socketserver.TCPServer(server_address, RequestHandler)
|
||||
httpd = socketserver.TCPServer(server_address, Handler)
|
||||
httpd.socket = ssl.wrap_socket(httpd.socket, certfile=SSL_CERTIFICATE, keyfile=SSL_KEY, server_side=True)
|
||||
print('Listening on: %s://%s:%i' % ('https' if SSL_CERTIFICATE else 'http', LISTENIP, LISTENPORT))
|
||||
if BASEPATH:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue