set value of creds instead of creating new variable

This commit is contained in:
Jeff 2021-10-06 23:30:43 -04:00
parent b9d2d8cfa8
commit cbf8870553
1 changed files with 1 additions and 1 deletions

View File

@ -422,7 +422,7 @@ func main() {
tlsConf.KeyLogWriter = w tlsConf.KeyLogWriter = w
} }
creds := credentials.NewTLS(tlsConf) creds = credentials.NewTLS(tlsConf)
// can use either -servername or -authority; but not both // can use either -servername or -authority; but not both
if *serverName != "" && *authority != "" { if *serverName != "" && *authority != "" {