Skip to content

Commit

Permalink
change default ssl to SSLv23 instead of TLS
Browse files Browse the repository at this point in the history
refs #70
  • Loading branch information
metagn committed Aug 15, 2022
1 parent 28cc44c commit b889d2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion websocket.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "0.5.0"
version = "0.5.1"
author = "niv"
description = "websockets for nim"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion websocket/client.nim
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ when not declared(httpclient.getDefaultSsl):
result = defaultSsl
when defined(ssl):
if result.isNil:
result = newContext(protTLSv1, verifyMode = CVerifyNone)
result = newContext(protSSLv23, verifyMode = CVerifyNone)
doAssert(not result.isNil, "failure to initialize SSL context")
defaultSsl = result

Expand Down

0 comments on commit b889d2f

Please sign in to comment.