Skip to content

Commit 56c0d4f

Browse files
committed
修复忽略SSL证书验证功能失败的问题
1 parent 3d0a125 commit 56c0d4f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/com/github/balloonupdate/mcpatch/client/network/impl/HttpProtocol.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public HttpProtocol(int number, String url, AppConfig config) {
7272
IgnoreSSLCert ignore = new IgnoreSSLCert();
7373

7474
builder.sslSocketFactory(ignore.context.getSocketFactory(), ignore.trustManager);
75+
builder.hostnameVerifier((hostname, session) -> true);
7576
}
7677

7778
client = builder

0 commit comments

Comments
 (0)