From 2d592284acdae75d54c497f08e3657fb3db6ea88 Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Tue, 28 Mar 2023 14:59:16 +0700 Subject: [PATCH] nothing --- .../chipmunk/chayapak/chomens_bot/util/DownloadUtilities.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/util/DownloadUtilities.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/util/DownloadUtilities.java index 0a8c0ef..7dd6c70 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/util/DownloadUtilities.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/util/DownloadUtilities.java @@ -5,8 +5,7 @@ import javax.net.ssl.SSLContext; import javax.net.ssl.TrustManager; import javax.net.ssl.X509TrustManager; import java.io.*; -import java.net.URL; -import java.net.URLConnection; +import java.net.*; import java.security.KeyManagementException; import java.security.NoSuchAlgorithmException; import java.security.SecureRandom; @@ -30,6 +29,7 @@ public class DownloadUtilities { SSLContext ctx = SSLContext.getInstance("TLS"); ctx.init(new KeyManager[0], new TrustManager[] {new DefaultTrustManager()}, new SecureRandom()); SSLContext.setDefault(ctx); + URLConnection conn = url.openConnection(); conn.setConnectTimeout(5000); conn.setReadTimeout(10000);