- Can spoof Azureus peer id and user agent to avoid ban

This commit is contained in:
Christophe Dumez 2008-05-18 09:50:35 +00:00
parent 711699e200
commit 56d80118b7
6 changed files with 31 additions and 4 deletions

View file

@ -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