mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 01:03:08 -07:00
- qBittorrent can now listen on ports < 1024 (must be root)
This commit is contained in:
parent
45eaf7ce58
commit
454c093033
4 changed files with 22 additions and 13 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue