- qBittorrent can now listen on ports < 1024 (must be root)

This commit is contained in:
Christophe Dumez 2010-01-20 09:54:51 +00:00
parent 45eaf7ce58
commit 454c093033
4 changed files with 22 additions and 13 deletions

View file

@ -225,7 +225,7 @@ int main(int argc, char *argv[]){
if(parts.size() == 2) {
bool ok = false;
int new_port = parts.last().toInt(&ok);
if(ok && new_port > 1024 && new_port <= 65535) {
if(ok && new_port > 0 && new_port <= 65535) {
Preferences::setWebUiPort(new_port);
}
}