mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-03-02 11:31:13 +01:00
Trial using the default Java hostname verifier instead of okhttp's (#2134)
This commit is contained in:
parent
d2e60eb5ac
commit
cee34d0c31
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user