Skip to content

Commit

Permalink
One more fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
cheatfate committed May 26, 2024
1 parent a78946a commit 216ad6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chronos/streams/tlsstream.nim
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,8 @@ proc newTLSServerAsyncStream*(rsource: AsyncStreamReader,
uint16(maxVersion))

if not isNil(cache):
sslServerSetCache(res.scontext, addr cache.context.vtable)
sslServerSetCache(
res.scontext, SslSessionCacheClassPointerConst(addr cache.context.vtable))

if TLSFlags.EnforceServerPref in flags:
sslEngineAddFlags(res.scontext.eng, OPT_ENFORCE_SERVER_PREFERENCES)
Expand Down

0 comments on commit 216ad6b

Please sign in to comment.