Skip to content

Commit

Permalink
updated tls example
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenrinzema committed Nov 11, 2024
1 parent 42e3be8 commit 4cec9c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/tls/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 4cec9c9

Please sign in to comment.