Skip to content

Commit

Permalink
Fix code scanning alert no. 1: Use of insecure SSL/TLS version
Browse files Browse the repository at this point in the history
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 7e73fad commit 367d276
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bitcoin_safe/gui/qt/network_settings/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def get_electrum_server_version(host: str, port: int, use_ssl: bool = True, time
ssock: Optional[socket.socket] = None
if use_ssl:
context = ssl.create_default_context()
context.minimum_version = ssl.TLSVersion.TLSv1_2
ssock = context.wrap_socket(sock, server_hostname=host)
else:
ssock = sock
Expand Down

0 comments on commit 367d276

Please sign in to comment.