mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 01:03:08 -07:00
- Can spoof Azureus peer id and user agent to avoid ban
This commit is contained in:
parent
711699e200
commit
56d80118b7
6 changed files with 31 additions and 4 deletions
|
@ -940,7 +940,11 @@ void GUI::configureSession(bool deleteOptions) {
|
|||
BTSession->setProxySettings(proxySettings, options->useProxyForTrackers(), options->useProxyForPeers(), options->useProxyForWebseeds(), options->useProxyForDHT());
|
||||
// * Session settings
|
||||
session_settings sessionSettings;
|
||||
sessionSettings.user_agent = "qBittorrent "VERSION;
|
||||
if(options->shouldSpoofAzureus()) {
|
||||
sessionSettings.user_agent = "Azureus 3.0.5.2";
|
||||
} else {
|
||||
sessionSettings.user_agent = "qBittorrent "VERSION;
|
||||
}
|
||||
BTSession->setSessionSettings(sessionSettings);
|
||||
// Bittorrent
|
||||
// * Max connections limit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue