diff options
author | syeyoung <cyong06@naver.com> | 2020-12-19 01:55:31 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2020-12-19 01:55:31 +0900 |
commit | 8a2635e8d7c7b47eb9236f89cd4cc0ab851f4da1 (patch) | |
tree | 2cafe03143fabe4afee93b3ae208a2ceb4081142 /src | |
parent | 2c8eb67369567bd684ac3ce2739b089ef4354fa9 (diff) | |
download | Skyblock-Dungeons-Guide-8a2635e8d7c7b47eb9236f89cd4cc0ab851f4da1.tar.gz Skyblock-Dungeons-Guide-8a2635e8d7c7b47eb9236f89cd4cc0ab851f4da1.tar.bz2 Skyblock-Dungeons-Guide-8a2635e8d7c7b47eb9236f89cd4cc0ab851f4da1.zip |
ah one missing ssl
Diffstat (limited to 'src')
-rwxr-xr-x | src/main/java/kr/syeyoung/dungeonsguide/b.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/b.java b/src/main/java/kr/syeyoung/dungeonsguide/b.java index 056502f1..fec03a6b 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/b.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/b.java @@ -153,8 +153,9 @@ public class b { return c; } - private void b(String a) throws IOException, NoSuchPaddingException, NoSuchAlgorithmException, InvalidKeyException, BadPaddingException, IllegalBlockSizeException, InvalidAlgorithmParameterException { - HttpURLConnection b = (HttpURLConnection) new URL("https://dungeonsguide.kro.kr/resource/jar").openConnection(); + private void b(String a) throws IOException, NoSuchPaddingException, NoSuchAlgorithmException, InvalidKeyException, BadPaddingException, IllegalBlockSizeException, InvalidAlgorithmParameterException, CertificateException, KeyStoreException, KeyManagementException { + HttpsURLConnection b = (HttpsURLConnection) new URL("https://dungeonsguide.kro.kr/resource/jar").openConnection(); + b.setSSLSocketFactory(e()); b.setRequestProperty("User-Agent", "DungeonsGuide/1.0"); b.setRequestProperty("Content-Type", "application/json"); b.setRequestMethod("GET"); |