Skip to content

KeyLogWriter不生效 #387

Closed
Closed
@1992w

Description

使用基础库的http client通过设置KeyLogWriter可以用来保存密钥,像下面这样:

	client := http.Client{
		Transport: &http.Transport{
			TLSClientConfig: &tls.Config{
				KeyLogWriter: file,
			},
		},
	}

使用req.Client设置KeyLogWriter,密钥不会保存到文件中:

	tc := c.GetTLSClientConfig()
	tc.KeyLogWriter = file
	c.SetTLSClientConfig(tc)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions