diff --git a/src/webui/www/private/preferences_content.html b/src/webui/www/private/preferences_content.html index 1820325c0..f73f735e9 100644 --- a/src/webui/www/private/preferences_content.html +++ b/src/webui/www/private/preferences_content.html @@ -159,7 +159,9 @@
QBT_TR(Listening Port)QBT_TR[CONTEXT=OptionsDialog] -
+ + +

@@ -262,6 +264,9 @@ +
+ Info: The password is saved unencrypted +
@@ -891,6 +896,13 @@ } }; + generateRandomPort = function() { + var min = 1024; + var max = 65535; + var port = Math.floor(Math.random() * (max - min + 1) + min); + $('port_value').setProperty('value', port); + }; + time_padding = function(val) { var ret = val.toString(); if (ret.length == 1)