diff --git a/src/webui/preferences_content.html b/src/webui/preferences_content.html index 13f930bc8..925b81ae0 100644 --- a/src/webui/preferences_content.html +++ b/src/webui/preferences_content.html @@ -156,6 +156,7 @@ _(Type:)      _(Host:)      _(Port:)

@@ -368,6 +369,15 @@ } else { http_proxy_type = 1; } + } else { + if(http_proxy_type_str == "socks5") { + if($defined($('http_proxy_auth_checkbox').get('checked')) && $('http_proxy_auth_checkbox').get('checked')) { + http_proxy_type = 4; + http_proxy_auth_enabled = 1; + } else { + http_proxy_type = 2; + } + } } var http_proxy_ip = $('http_proxy_host_text').get('value'); var http_proxy_port = $('http_proxy_port_value').get('value'); @@ -820,6 +830,10 @@ loadPreferences = function() { case 3: // HTTP_PW $('http_proxy_type_select').set('value', 'http'); break; + case 2: // SOCKS5 + case 4: // SOCKS5_PW + $('http_proxy_type_select').set('value', 'socks5'); + break; default: // NONE $('http_proxy_type_select').set('value', 'none'); }