Browse Source

Merge pull request #9436 from Piccirello/disable-dht

Don't disable DHT when using force proxy
adaptive-webui-19844
Mike Tzou 6 years ago committed by GitHub
parent
commit
8544351754
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/gui/optionsdialog.cpp
  2. 1
      src/webui/www/private/preferences_content.html

1
src/gui/optionsdialog.cpp

@ -1358,7 +1358,6 @@ void OptionsDialog::toggleComboRatioLimitAct()
void OptionsDialog::enableForceProxy(bool enable) void OptionsDialog::enableForceProxy(bool enable)
{ {
m_ui->checkUPnP->setEnabled(!enable); m_ui->checkUPnP->setEnabled(!enable);
m_ui->checkDHT->setEnabled(!enable);
m_ui->checkLSD->setEnabled(!enable); m_ui->checkLSD->setEnabled(!enable);
} }

1
src/webui/www/private/preferences_content.html

@ -660,7 +660,6 @@
updateForceProxySettings = function() { updateForceProxySettings = function() {
var isForceProxyEnabled = (!$('force_proxy_checkbox').getProperty('disabled')) && ($('force_proxy_checkbox').getProperty('checked')); var isForceProxyEnabled = (!$('force_proxy_checkbox').getProperty('disabled')) && ($('force_proxy_checkbox').getProperty('checked'));
$('upnp_checkbox').setProperty('disabled', isForceProxyEnabled); $('upnp_checkbox').setProperty('disabled', isForceProxyEnabled);
$('dht_checkbox').setProperty('disabled', isForceProxyEnabled);
$('lsd_checkbox').setProperty('disabled', isForceProxyEnabled); $('lsd_checkbox').setProperty('disabled', isForceProxyEnabled);
}; };

Loading…
Cancel
Save