mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-22 03:52:16 +00:00
Trial using the default Java hostname verifier instead of okhttp's (#2134)
This commit is contained in:
1 file changed
+9
-1
@@ -66,6 +66,8 @@ import java.util.Optional;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import javax.net.ssl.HttpsURLConnection;
|
||||
|
||||
public abstract class AbstractLuckPermsPlugin implements LuckPermsPlugin {
|
||||
|
||||
// init during load
|
||||
@@ -118,7 +120,13 @@ public abstract class AbstractLuckPermsPlugin implements LuckPermsPlugin {
|
||||
this.localeManager.tryLoad(this, getBootstrap().getConfigDirectory().resolve("lang.yml"));
|
||||
|
||||
// setup a bytebin instance
|
||||
this.bytebin = new BytebinClient(new OkHttpClient(), getConfiguration().get(ConfigKeys.BYTEBIN_URL), "luckperms");
|
||||
this.bytebin = new BytebinClient(
|
||||
new OkHttpClient.Builder()
|
||||
.hostnameVerifier(HttpsURLConnection.getDefaultHostnameVerifier())
|
||||
.build(),
|
||||
getConfiguration().get(ConfigKeys.BYTEBIN_URL),
|
||||
"luckperms"
|
||||
);
|
||||
|
||||
// now the configuration is loaded, we can create a storage factory and load initial dependencies
|
||||
StorageFactory storageFactory = new StorageFactory(this);
|
||||
|
||||
Reference in new issue
Block a user