Update server.py
Some checks are pending
Check syntax / check (push) Waiting to run
Some checks are pending
Check syntax / check (push) Waiting to run
This commit is contained in:
parent
c05faaeda8
commit
bbf868c1de
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ for i in restrict_ip.split(" "):
|
|||
context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
|
||||
if ssl_option:
|
||||
print(f"Loading SSL cert {ssl_cert} with key {ssl_pkey}")
|
||||
ssl_context.load_cert_chain(ssl_cert, keyfile=ssl_pkey)
|
||||
context.load_cert_chain(ssl_cert, keyfile=ssl_pkey)
|
||||
for i in restrict_ip.split(" "):
|
||||
sockets_ssl[i] = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
sockets_ssl[i].setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||
|
|
Loading…
Reference in a new issue