Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用h2协议,设置随机TLS指纹的时候出现问题:http2: unexpected ALPN protocol ""; want "h2" #336

Open
ChetWei opened this issue Mar 19, 2024 · 1 comment

Comments

@ChetWei
Copy link

ChetWei commented Mar 19, 2024

response, err := req.C().EnableForceHTTP2(). SetTLSFingerprintChrome(). SetProxyURL(requestInfo.Proxy).R().........
这样是没有问题的,但是当我使用SetTLSFingerprintRandomized() 或者 SetTLSFingerprintAndroid()都会报错:
http2: unexpected ALPN protocol ""; want "h2" panic: runtime error: invalid memory address or nil pointer dereference。
其他类型的指纹也可能有类似的问题

@ChetWei
Copy link
Author

ChetWei commented Mar 19, 2024

另外,这里设置的代理也没有生效

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant