mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-04 22:52:33 -06:00
Don't ignore SSL errors
This commit is contained in:
@@ -374,6 +374,8 @@ void AppController::preferencesAction()
|
||||
data[u"resolve_peer_countries"_s] = pref->resolvePeerCountries();
|
||||
// Reannounce to all trackers when ip/port changed
|
||||
data[u"reannounce_when_address_changed"_s] = session->isReannounceWhenAddressChangedEnabled();
|
||||
// Ignore SSL errors
|
||||
data[u"ignore_ssl_errors"_s] = pref->isIgnoreSSLErrors();
|
||||
|
||||
// libtorrent preferences
|
||||
// Bdecode depth limit
|
||||
@@ -982,6 +984,9 @@ void AppController::setPreferencesAction()
|
||||
// Reannounce to all trackers when ip/port changed
|
||||
if (hasKey(u"reannounce_when_address_changed"_s))
|
||||
session->setReannounceWhenAddressChangedEnabled(it.value().toBool());
|
||||
// Ignore SLL errors
|
||||
if (hasKey(u"ignore_ssl_errors"_s))
|
||||
pref->setIgnoreSSLErrors(it.value().toBool());
|
||||
|
||||
// libtorrent preferences
|
||||
// Bdecode depth limit
|
||||
|
||||
@@ -1132,6 +1132,14 @@ Use ';' to split multiple entries. Can use wildcard '*'.)QBT_TR[CONTEXT=OptionsD
|
||||
<input type="checkbox" id="markOfTheWeb" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label for="ignoreSSLErrors">QBT_TR(Ignore SSL errors:)QBT_TR[CONTEXT=OptionsDialog]</label>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" id="ignoreSSLErrors">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label for="pythonExecutablePath">QBT_TR(Python executable path (may require restart):)QBT_TR[CONTEXT=OptionsDialog]</label>
|
||||
@@ -2353,6 +2361,7 @@ Use ';' to split multiple entries. Can use wildcard '*'.)QBT_TR[CONTEXT=OptionsD
|
||||
$("refreshInterval").setProperty("value", pref.refresh_interval);
|
||||
$("resolvePeerCountries").setProperty("checked", pref.resolve_peer_countries);
|
||||
$("reannounceWhenAddressChanged").setProperty("checked", pref.reannounce_when_address_changed);
|
||||
$("ignoreSSLErrors").setProperty("checked", pref.ignore_ssl_errors);
|
||||
// libtorrent section
|
||||
$("bdecodeDepthLimit").setProperty("value", pref.bdecode_depth_limit);
|
||||
$("bdecodeTokenLimit").setProperty("value", pref.bdecode_token_limit);
|
||||
@@ -2802,6 +2811,7 @@ Use ';' to split multiple entries. Can use wildcard '*'.)QBT_TR[CONTEXT=OptionsD
|
||||
settings["refresh_interval"] = Number($("refreshInterval").getProperty("value"));
|
||||
settings["resolve_peer_countries"] = $("resolvePeerCountries").getProperty("checked");
|
||||
settings["reannounce_when_address_changed"] = $("reannounceWhenAddressChanged").getProperty("checked");
|
||||
settings["ignore_ssl_errors"] = $("ignoreSSLErrors").getProperty("checked");
|
||||
|
||||
// libtorrent section
|
||||
settings["bdecode_depth_limit"] = Number($("bdecodeDepthLimit").getProperty("value"));
|
||||
|
||||
Reference in New Issue
Block a user