mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Supports SOCKS5 proxies as well as HTTP ones
- Allow to use Proxy for Trackers / Peers / Web seeds / DHT connections - Redesigned Proxy options a little (for new features)
This commit is contained in:
parent
2985fa921a
commit
2196fcc911
7 changed files with 219 additions and 10 deletions
|
@ -681,10 +681,16 @@ void bittorrent::setSessionSettings(session_settings sessionSettings){
|
|||
}
|
||||
|
||||
// Set Proxy
|
||||
void bittorrent::setProxySettings(proxy_settings proxySettings){
|
||||
s->set_peer_proxy(proxySettings);
|
||||
s->set_web_seed_proxy(proxySettings);
|
||||
s->set_tracker_proxy(proxySettings);
|
||||
void bittorrent::setProxySettings(proxy_settings proxySettings, bool trackers, bool peers, bool web_seeds, bool dht){
|
||||
if(trackers)
|
||||
s->set_tracker_proxy(proxySettings);
|
||||
if(peers)
|
||||
s->set_peer_proxy(proxySettings);
|
||||
if(web_seeds)
|
||||
s->set_web_seed_proxy(proxySettings);
|
||||
if(DHTEnabled && dht){
|
||||
s->set_dht_proxy(proxySettings);
|
||||
}
|
||||
}
|
||||
|
||||
// Read alerts sent by the bittorrent session
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue