From 4cec9c98fe3194a465c1e12420d3ae67a7578365 Mon Sep 17 00:00:00 2001 From: Jeroen Rinzema Date: Mon, 11 Nov 2024 22:43:46 +0100 Subject: [PATCH] updated tls example --- examples/tls/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/tls/main.go b/examples/tls/main.go index 627de54..dbaff3a 100644 --- a/examples/tls/main.go +++ b/examples/tls/main.go @@ -23,8 +23,8 @@ func run() error { return err } - certs := []tls.Certificate{cert} - server, err := wire.NewServer(handler, wire.Certificates(certs), wire.Logger(logger), wire.MessageBufferSize(100)) + config := &tls.Config{Certificates: []tls.Certificate{cert}} + server, err := wire.NewServer(handler, wire.TLSConfig(config), wire.Logger(logger), wire.MessageBufferSize(100)) if err != nil { return err }