Skip to content

Commit

Permalink
Merge pull request #184 from SeiV-K/main
Browse files Browse the repository at this point in the history
Update villain_core.py
  • Loading branch information
t3l3machus authored Nov 5, 2024
2 parents 8fc4e71 + 368d977 commit d84ffff
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Core/villain_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1479,14 +1479,9 @@ def initiate_hoax_server():
exit(f'\n[{DEBUG}] {Hoaxshell.server_name} failed to start (Unknown error occurred).\n')

if Hoaxshell_Settings.ssl_support:
httpd.socket = ssl.wrap_socket (
httpd.socket,
keyfile = Hoaxshell_Settings.keyfile,
certfile = Hoaxshell_Settings.certfile,
server_side = True,
ssl_version=ssl.PROTOCOL_TLS
)

context = ssl.SSLContext(ssl.PROTOCOL_TLS)
context.load_cert_chain(certfile = Hoaxshell_Settings.certfile, keyfile = Hoaxshell_Settings.keyfile)
httpd.socket = context.wrap_socket(sock = httpd.socket, server_side= True)

Hoaxshell_server = Thread(target = httpd.serve_forever, args = (), name = 'hoaxshell_server')
Hoaxshell_server.daemon = True
Expand Down

0 comments on commit d84ffff

Please sign in to comment.