Option to disable connections not supported by proxies. Closes #1894.

This commit is contained in:
sledgehammer999
2014-08-26 00:32:10 +03:00
parent cd99f0ea43
commit 0b8fad69fa
6 changed files with 55 additions and 1 deletions

View File

@@ -698,6 +698,16 @@ void Preferences::setProxyPeerConnections(bool enabled) {
setValue("Preferences/Connection/ProxyPeerConnections", enabled);
}
#if LIBTORRENT_VERSION_NUM >= 10000
bool Preferences::getForceProxy() const {
return value("Preferences/Connection/ProxyForce", true).toBool();
}
void Preferences::setForceProxy(bool enabled) {
setValue("Preferences/Connection/ProxyForce", enabled);
}
#endif
// Bittorrent options
int Preferences::getMaxConnecs() const {
return value("Preferences/Bittorrent/MaxConnecs", 500).toInt();