Skip to content

Commit 6328427

Browse files
committed
adapt to API change (Tls.Config.client may result in an error)
1 parent 77ea165 commit 6328427

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

miou/tls_miou_unix.ml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,11 @@ let resolve host service =
293293
| ai :: _ -> ai.ai_addr
294294

295295
let connect authenticator (v, port) =
296-
let conf = Tls.Config.client ~authenticator () in
296+
let conf =
297+
match Tls.Config.client ~authenticator () with
298+
| Ok config -> config
299+
| Error `Msg msg -> Fmt.invalid_arg "Configuration failure: %s" msg
300+
in
297301
let addr = resolve v (string_of_int port) in
298302
let fd =
299303
match addr with

0 commit comments

Comments
 (0)