mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
HTTP proxy support for peer communication
This commit is contained in:
@@ -514,6 +514,11 @@ int options_imp::getPeerProxyType() const{
|
||||
return SOCKS5_PW;
|
||||
}
|
||||
return SOCKS5;
|
||||
case 3:
|
||||
if(isPeerProxyAuthEnabled()){
|
||||
return HTTP_PW;
|
||||
}
|
||||
return HTTP;
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
@@ -654,6 +659,10 @@ void options_imp::loadOptions(){
|
||||
case SOCKS5_PW:
|
||||
comboProxyType->setCurrentIndex(2);
|
||||
break;
|
||||
case HTTP:
|
||||
case HTTP_PW:
|
||||
comboProxyType->setCurrentIndex(3);
|
||||
break;
|
||||
default:
|
||||
comboProxyType->setCurrentIndex(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user