mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
HTTP proxy support for peer communication
This commit is contained in:
parent
c7ca51f950
commit
de50346428
4 changed files with 45 additions and 16 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue