diff --git a/src/webui/extra_translations.h b/src/webui/extra_translations.h
index 0af373a2b..3b059793c 100644
--- a/src/webui/extra_translations.h
+++ b/src/webui/extra_translations.h
@@ -71,8 +71,6 @@ static const char *__TRANSLATIONS__[] = {
QT_TRANSLATE_NOOP("HttpServer", "Apply"),
QT_TRANSLATE_NOOP("HttpServer", "Add"),
QT_TRANSLATE_NOOP("HttpServer", "Upload Torrents"),
- QT_TRANSLATE_NOOP("HttpServer", "Use a different port for DHT and BitTorrent"),
- QT_TRANSLATE_NOOP("HttpServer", "DHT port:"),
QT_TRANSLATE_NOOP("HttpServer", "All"),
QT_TRANSLATE_NOOP("HttpServer", "Downloading"),
QT_TRANSLATE_NOOP("HttpServer", "Seeding"),
diff --git a/src/webui/www/public/preferences_content.html b/src/webui/www/public/preferences_content.html
index 41adb243f..45bd90729 100644
--- a/src/webui/www/public/preferences_content.html
+++ b/src/webui/www/public/preferences_content.html
@@ -115,10 +115,6 @@
-
-
-
-
@@ -381,7 +377,6 @@
toggleAnonymousMode = function() {
if($('anonymous_mode_checkbox').getProperty('checked')) {
$('dht_checkbox').setProperty('disabled', true);
- $('DHTPortDiffThanBT_checkbox').setProperty('disabled', true);
$('dht_checkbox').setProperty('checked', false);
$('lsd_checkbox').setProperty('disabled', true);
$('lsd_checkbox').setProperty('checked', false);
@@ -389,7 +384,6 @@ toggleAnonymousMode = function() {
$('upnp_checkbox').setProperty('checked', false);
} else {
$('dht_checkbox').setProperty('disabled', false);
- $('DHTPortDiffThanBT_checkbox').setProperty('disabled', false);
$('lsd_checkbox').setProperty('disabled', false);
$('upnp_checkbox').setProperty('disabled', false);
}
@@ -549,14 +543,6 @@ updateFilterSettings = function() {
}
}
-updateDHTPortSettings = function() {
- if($('DHTPortDiffThanBT_checkbox').getProperty('checked')) {
- $('DHTPort_txt').setProperty('disabled', false);
- } else {
- $('DHTPort_txt').setProperty('disabled', true);
- }
-}
-
updatePeerProxySettings = function() {
if($('peer_proxy_type_select').getProperty('value') != "none") {
$('peer_proxy_host_text').setProperty('disabled', false);
@@ -743,9 +729,6 @@ loadPreferences = function() {
updateMaxUploadsPerTorrentEnabled();
// Bittorrent
$('dht_checkbox').setProperty('checked', pref.dht);
- $('DHTPortDiffThanBT_checkbox').setProperty('checked', !pref.dhtSameAsBT);
- $('DHTPort_txt').setProperty('value', pref.dht_port);
- updateDHTPortSettings();
$('pex_checkbox').setProperty('checked', pref.pex);
$('lsd_checkbox').setProperty('checked', pref.lsd);
var encryption = pref.encryption.toInt();
@@ -960,8 +943,6 @@ applyPreferences = function() {
}
// Bittorrent
settings.set('dht', $('dht_checkbox').getProperty('checked'));
- settings.set('dhtSameAsBT', !$('DHTPortDiffThanBT_checkbox').getProperty('checked'));
- settings.set('dht_port', $('DHTPort_txt').getProperty('value').toInt());
settings.set('pex', $('pex_checkbox').getProperty('checked'));
settings.set('lsd', $('lsd_checkbox').getProperty('checked'));
settings.set('encryption', $('encryption_select').getSelected()[0].getProperty('value'));