mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -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
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue