mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-27 03:14:49 +00:00
Don't use SSL for lib downloads
This commit is contained in:
parent
651bed91a0
commit
d5e4802ade
@ -86,7 +86,7 @@ bool OneSixLibrary::isNative()
|
|||||||
}
|
}
|
||||||
QString OneSixLibrary::downloadUrl()
|
QString OneSixLibrary::downloadUrl()
|
||||||
{
|
{
|
||||||
if(m_absolute_url.size())
|
if (m_absolute_url.size())
|
||||||
return m_absolute_url;
|
return m_absolute_url;
|
||||||
return m_download_url;
|
return m_download_url;
|
||||||
}
|
}
|
||||||
@ -119,11 +119,12 @@ QJsonObject OneSixLibrary::toJson()
|
|||||||
{
|
{
|
||||||
QJsonObject libRoot;
|
QJsonObject libRoot;
|
||||||
libRoot.insert("name", m_name);
|
libRoot.insert("name", m_name);
|
||||||
if(m_absolute_url.size())
|
if (m_absolute_url.size())
|
||||||
libRoot.insert("MMC-absoluteUrl", m_absolute_url);
|
libRoot.insert("MMC-absoluteUrl", m_absolute_url);
|
||||||
if(m_hint.size())
|
if (m_hint.size())
|
||||||
libRoot.insert("MMC-hint", m_hint);
|
libRoot.insert("MMC-hint", m_hint);
|
||||||
if(m_base_url != "https://s3.amazonaws.com/Minecraft.Download/libraries/")
|
if (m_base_url != "http://s3.amazonaws.com/Minecraft.Download/libraries/" &&
|
||||||
|
m_base_url != "https://s3.amazonaws.com/Minecraft.Download/libraries/")
|
||||||
libRoot.insert("url", m_base_url);
|
libRoot.insert("url", m_base_url);
|
||||||
if (isNative() && m_native_suffixes.size())
|
if (isNative() && m_native_suffixes.size())
|
||||||
{
|
{
|
||||||
|
@ -13,7 +13,7 @@ class OneSixLibrary
|
|||||||
private:
|
private:
|
||||||
// basic values used internally (so far)
|
// basic values used internally (so far)
|
||||||
QString m_name;
|
QString m_name;
|
||||||
QString m_base_url = "https://s3.amazonaws.com/Minecraft.Download/libraries/";
|
QString m_base_url = "http://s3.amazonaws.com/Minecraft.Download/libraries/";
|
||||||
QList<std::shared_ptr<Rule> > m_rules;
|
QList<std::shared_ptr<Rule> > m_rules;
|
||||||
|
|
||||||
// custom values
|
// custom values
|
||||||
|
Loading…
Reference in New Issue
Block a user