set value of creds instead of creating new variable (#263)

This commit is contained in:
Jeffrey Duce 2021-10-07 15:49:59 -04:00 committed by GitHub
parent 76bbedeed0
commit 9ac7e3a34d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 != "" {