Browse Source

Change labelsync to use https

Self signed for now until I get a wildcard
283
Maran 10 years ago
parent
commit
4bed294ddd
  1. 6
      plugins/labels.py

6
plugins/labels.py

@ -25,7 +25,7 @@ from electrum_gui.qt.util import ThreadedButton, Buttons, CancelButton, OkButton
class Plugin(BasePlugin): class Plugin(BasePlugin):
target_host = 'sync.bysh.me:8080' target_host = 'sync.bysh.me:9090'
encode_password = None encode_password = None
def fullname(self): def fullname(self):
@ -140,8 +140,8 @@ class Plugin(BasePlugin):
QMessageBox.information(None, _("Labels synchronised"), _("Your labels have been synchronised.")) QMessageBox.information(None, _("Labels synchronised"), _("Your labels have been synchronised."))
def do_request(self, method, url = "/labels", is_batch=False, data=None): def do_request(self, method, url = "/labels", is_batch=False, data=None):
url = 'http://' + self.target_host + url url = 'https://' + self.target_host + url
kwargs = {'headers': {}} kwargs = {'headers': {}, 'verify': False}
if method == 'GET' and data: if method == 'GET' and data:
kwargs['params'] = data kwargs['params'] = data
elif method == 'POST' and data: elif method == 'POST' and data:

Loading…
Cancel
Save