Skip to content

Commit c531346

Browse files
Merge branch 'main' into verif-exceptions
2 parents 053d4e7 + 018e77e commit c531346

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lsquic/context/client.nim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ const Cubic = 1
118118
const Adaptive = 3
119119

120120
proc new*(T: typedesc[ClientContext], tlsConfig: TLSConfig): Result[T, string] =
121+
if tlsConfig.certVerifier.isNone:
122+
return err("client TLSConfig requires a certificate verifier")
123+
121124
var ctx = ClientContext()
122125
ctx.tlsConfig = tlsConfig
123126
ctx.running = true

0 commit comments

Comments
 (0)