Use TLS for LabelSync
This commit is contained in:
parent
0a1c8f5546
commit
327c1bafd9
|
@ -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:9090'
|
target_host = 'sync.bytesized-hosting.com:9090'
|
||||||
encode_password = None
|
encode_password = None
|
||||||
|
|
||||||
def fullname(self):
|
def fullname(self):
|
||||||
|
@ -141,7 +141,7 @@ class Plugin(BasePlugin):
|
||||||
|
|
||||||
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 = 'https://' + self.target_host + url
|
url = 'https://' + self.target_host + url
|
||||||
kwargs = {'headers': {}, 'verify': False}
|
kwargs = {'headers': {}}
|
||||||
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…
Reference in New Issue