added https support to the settings

This commit is contained in:
DYefremov
2020-01-03 23:26:55 +03:00
parent d0638f7158
commit bcbe2b3f46
5 changed files with 108 additions and 40 deletions

View File

@@ -835,7 +835,7 @@ class Application(Gtk.Application):
if profile is SettingsType.ENIGMA_2:
host, port, user, password = opts.host, opts.http_port, opts.http_user, opts.http_password
try:
test_http(host, port, user, password, skip_message=True)
test_http(host, port, user, password, use_ssl=opts.http_use_ssl, skip_message=True)
except TestException:
use_http = False