Skip to content

Commit

Permalink
fix tls config visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Ondřej Benkovský committed Apr 30, 2023
1 parent 8fb082f commit 9fa7822
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doq/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ type Client struct {
}

type Options struct {
tlsConfig *tls.Config
TlsConfig *tls.Config
}

func NewClient(addr string, options Options) (*Client, error) {
client := Client{}

client.addr = addr

if options.tlsConfig == nil {
if options.TlsConfig == nil {
client.tlsconfig = &tls.Config{}
} else {
client.tlsconfig = options.tlsConfig.Clone()
client.tlsconfig = options.TlsConfig.Clone()
}

// override protocol negotiation to DoQ, all the other stuff (like certificates, cert pools, insecure skip) is up to the user of library
Expand Down

0 comments on commit 9fa7822

Please sign in to comment.