- 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

@ -1602,9 +1602,9 @@ void Bittorrent::addConsoleMessage(QString msg, QString) {
}
}
// Set DHT port (>= 1000 or 0 if same as BT)
// Set DHT port (>= 1 or 0 if same as BT)
void Bittorrent::setDHTPort(int dht_port) {
if(dht_port == 0 || dht_port >= 1000) {
if(dht_port >= 0) {
if(dht_port == current_dht_port) return;
struct dht_settings DHTSettings;
DHTSettings.service_port = dht_port;