Skip to content

Https绕过host检查 #1112

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

Merged
merged 1 commit into from
Mar 22, 2023
Merged

Https绕过host检查 #1112

merged 1 commit into from
Mar 22, 2023

Conversation

Tanky-Zhang
Copy link
Contributor

经过线上验证发现,目前Https的绕过并不完全,因为包中默认使用了DefaultHostnameVerifier进行host验证,当然对于大部分网站是没有问题的,但是对于部分证书混乱的网站,这里可能会出现SSL的异常,所以这里我改成了不进行host验证,永远为true

@Tanky-Zhang
Copy link
Contributor Author

@code4craft 你好,可以帮忙看下这次变更,是否可以合并到主干吗

@sutra sutra merged commit 244ade7 into code4craft:develop Mar 22, 2023
KamiNoYuki added a commit to KamiNoYuki/webmagic-for-android that referenced this pull request Mar 25, 2023
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

Successfully merging this pull request may close these issues.

2 participants