-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes #1043
- Loading branch information
Showing
6 changed files
with
86 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,6 +79,8 @@ type Runner struct { | |
|
||
console *console | ||
setupData []byte | ||
|
||
keylogger io.Writer | ||
} | ||
|
||
// New returns a new Runner for the provide source | ||
|
@@ -126,6 +128,7 @@ func NewFromBundle(rs *lib.RuntimeState, b *Bundle) (*Runner, error) { | |
ActualResolver: net.LookupIP, | ||
builtinMetrics: rs.BuiltinMetrics, | ||
registry: rs.Registry, | ||
keylogger: rs.KeyLogger, | ||
} | ||
|
||
err = r.SetOptions(r.Bundle.Options) | ||
|
@@ -201,6 +204,7 @@ func (r *Runner) newVU(idLocal, idGlobal uint64, samplesOut chan<- metrics.Sampl | |
MaxVersion: uint16(tlsVersions.Max), | ||
Certificates: certs, | ||
Renegotiation: tls.RenegotiateFreelyAsClient, | ||
KeyLogWriter: r.keylogger, | ||
} | ||
// Follow NameToCertificate in https://pkg.go.dev/crypto/[email protected]#Config, leave this field nil | ||
// when it is empty | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters