HTTP proxy support for peer communication

This commit is contained in:
Christophe Dumez 2010-01-15 16:41:39 +00:00
parent c7ca51f950
commit de50346428
4 changed files with 45 additions and 16 deletions

View file

@ -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);
}