Skip to content

Commit

Permalink
Remove unused SSL arguments from eventlet server options (Fixes #1639)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Jul 18, 2021
1 parent 57e525f commit 4b5e520
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flask_socketio/__init__.py
Expand Up @@ -614,9 +614,9 @@ def run_server():
'ciphers']
ssl_params = {k: kwargs[k] for k in kwargs
if k in ssl_args and kwargs[k] is not None}
for k in ssl_args:
kwargs.pop(k, None)
if len(ssl_params) > 0:
for k in ssl_params:
kwargs.pop(k)
ssl_params['server_side'] = True # Listening requires true
eventlet_socket = eventlet.wrap_ssl(eventlet_socket,
**ssl_params)
Expand Down

0 comments on commit 4b5e520

Please sign in to comment.