From b9229babfc9c7a7f70f55ceea22d8240377c8c4b Mon Sep 17 00:00:00 2001 From: Thomas Piccirello Date: Tue, 16 Oct 2018 00:34:47 -0400 Subject: [PATCH] Add WebUI Random port button and proxy unencrypted password notice --- src/webui/www/private/preferences_content.html | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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)