We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6e44a2e + e807ad6 commit c5c9135Copy full SHA for c5c9135
1 file changed
src/main/java/org/tron/common/utils/HttpUtils.java
@@ -4,6 +4,8 @@
4
import static org.tron.common.utils.Utils.greenBoldHighlight;
5
6
import java.io.IOException;
7
+import java.security.Provider;
8
+import java.security.Security;
9
import java.util.Map;
10
import java.util.Optional;
11
import java.util.concurrent.TimeUnit;
@@ -17,6 +19,14 @@
17
19
18
20
public class HttpUtils {
21
22
+ static {
23
+ Provider sunEc = Security.getProvider("SunEC");
24
+ if (sunEc != null) {
25
+ Security.removeProvider("SunEC");
26
+ Security.insertProviderAt(sunEc, 1);
27
+ }
28
29
+
30
private static final OkHttpClient client = new OkHttpClient.Builder()
31
.connectTimeout(10, TimeUnit.SECONDS)
32
.readTimeout(15, TimeUnit.SECONDS)
0 commit comments