mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
fix keylog creation in the example client
This commit is contained in:
parent
dd035c2f12
commit
d6e4b100e8
1 changed files with 4 additions and 4 deletions
|
@ -36,14 +36,14 @@ func main() {
|
|||
}
|
||||
logger.SetLogTimeFormat("")
|
||||
|
||||
var keyLog *os.File
|
||||
var keyLog io.Writer
|
||||
if len(*keyLogFile) > 0 {
|
||||
var err error
|
||||
keyLog, err = os.Create(*keyLogFile)
|
||||
f, err := os.Create(*keyLogFile)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
defer keyLog.Close()
|
||||
defer f.Close()
|
||||
keyLog = f
|
||||
}
|
||||
|
||||
pool, err := x509.SystemCertPool()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue