diff --git a/interfaces/wizard/one.html b/interfaces/wizard/one.html index cae03cb..9517ad5 100644 --- a/interfaces/wizard/one.html +++ b/interfaces/wizard/one.html @@ -64,13 +64,23 @@ +
+ +
+ +
+
-
$T('wizard-server-text')
+
$T('wizard-server-text')
diff --git a/interfaces/wizard/static/javascript/checkserver.js b/interfaces/wizard/static/javascript/checkserver.js index 893545e..88438d3 100644 --- a/interfaces/wizard/static/javascript/checkserver.js +++ b/interfaces/wizard/static/javascript/checkserver.js @@ -24,7 +24,7 @@ $(document).ready(function() { } else { r = ' ' + result.value.message + ''; } - + r = r.replace('https://sabnzbd.org/certificate-errors', 'https://sabnzbd.org/certificate-errors') $('#serverResponse').html(r); } ); diff --git a/interfaces/wizard/static/style.css b/interfaces/wizard/static/style.css index b5f8eb4..55d8169 100644 --- a/interfaces/wizard/static/style.css +++ b/interfaces/wizard/static/style.css @@ -62,7 +62,7 @@ a[target="_blank"] { color: #00cc22; } .failed { - color: red; + color: red !important; } #rightGreyText { color: #ccc; @@ -164,16 +164,12 @@ label { text-decoration: line-through; color: #ccc; } -#serverQuote { - opacity: 0.8; - box-shadow: none !important; - white-space: normal; - width: 100%; +#serverResponse { + padding: 6px 10px; } #host-tip { margin-bottom: 5px; } - .error-text { display: inline; color: red; @@ -192,7 +188,8 @@ label { #content a, #content a:hover, #content a:active, -#content a:visited { +#content a:visited, +#serverResponse { color: #555; } .btn { diff --git a/sabnzbd/wizard.py b/sabnzbd/wizard.py index 3123927..cd2bb8d 100644 --- a/sabnzbd/wizard.py +++ b/sabnzbd/wizard.py @@ -95,6 +95,7 @@ class Wizard(object): info['language'] = cfg.language() info['active_lang'] = info['language'] info['T'] = Ttemplate + info['have_ssl_context'] = sabnzbd.HAVE_SSL_CONTEXT servers = config.get_servers() if not servers: @@ -104,6 +105,7 @@ class Wizard(object): info['password'] = '' info['connections'] = '' info['ssl'] = 0 + info['ssl_verify'] = 2 else: for server in servers: # If there are multiple servers, just use the first enabled one @@ -113,8 +115,8 @@ class Wizard(object): info['username'] = s.username() info['password'] = s.password.get_stars() info['connections'] = s.connections() - info['ssl'] = s.ssl() + info['ssl_verify'] = s.ssl_verify() if s.enable(): break template = Template(file=os.path.join(self.__web_dir, 'one.html'),