Update server.py
This commit is contained in:
parent
1809c5c1e6
commit
0ab037c7b9
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ for i in restrict_ip.split(" "):
|
||||||
sockets[i].setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
sockets[i].setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||||
sockets[i].bind((i,6667))
|
sockets[i].bind((i,6667))
|
||||||
sockets[i].listen(1)
|
sockets[i].listen(1)
|
||||||
context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER, ssl.PROTOCOL_TLSv1_1)
|
context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
|
||||||
if ssl_option:
|
if ssl_option:
|
||||||
print(f"Loading SSL cert {ssl_cert} with key {ssl_pkey}")
|
print(f"Loading SSL cert {ssl_cert} with key {ssl_pkey}")
|
||||||
context.load_cert_chain(ssl_cert, keyfile=ssl_pkey)
|
context.load_cert_chain(ssl_cert, keyfile=ssl_pkey)
|
||||||
|
|
Loading…
Add table
Reference in a new issue