mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
- Now user can change DHT port in options
- Reworked options window a little
This commit is contained in:
parent
ee8bc5cdaf
commit
f7140491cd
6 changed files with 436 additions and 251 deletions
|
@ -1690,6 +1690,13 @@ void GUI::configureSession(){
|
|||
qDebug("Disabling DHT Support");
|
||||
}
|
||||
}
|
||||
int dht_port = options->getDHTPort();
|
||||
if(dht_port >= 1000){
|
||||
struct dht_settings DHTSettings;
|
||||
DHTSettings.service_port = dht_port;
|
||||
s->set_dht_settings(DHTSettings);
|
||||
qDebug("Set DHT Port to %d", dht_port);
|
||||
}
|
||||
// Apply filtering settings
|
||||
if(options->isFilteringEnabled()){
|
||||
qDebug("Ip Filter enabled");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue