mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- FEATURE: Allow to set a different port for DHT (UDP) than the one used for
Bittorrent
This commit is contained in:
parent
b6c6637c3b
commit
ee6bc3c2e9
6 changed files with 113 additions and 7 deletions
|
@ -1072,9 +1072,9 @@ void bittorrent::saveTrackerFile(QString hash) {
|
|||
tracker_file.close();
|
||||
}
|
||||
|
||||
// Set DHT port (>= 1000)
|
||||
// Set DHT port (>= 1000 or 0 if same as BT)
|
||||
void bittorrent::setDHTPort(int dht_port) {
|
||||
if(dht_port >= 1000) {
|
||||
if(dht_port == 0 or dht_port >= 1000) {
|
||||
struct dht_settings DHTSettings;
|
||||
DHTSettings.service_port = dht_port;
|
||||
s->set_dht_settings(DHTSettings);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue