1
0

add proxy settings to kivy GUI

This commit is contained in:
ThomasV
2017-03-27 18:59:48 +02:00
parent 2fcdd458b3
commit 59b0b51f24
4 changed files with 105 additions and 10 deletions

View File

@@ -318,12 +318,6 @@ class NetworkChoiceLayout(object):
host = str(self.server_host.text())
port = str(self.server_port.text())
protocol = 's' if self.ssl_cb.isChecked() else 't'
# sanitize
try:
deserialize_server(serialize_server(host, port, protocol))
except:
return
if self.proxy_mode.currentText() != 'NONE':
proxy = { 'mode':str(self.proxy_mode.currentText()).lower(),
'host':str(self.proxy_host.text()),
@@ -332,9 +326,7 @@ class NetworkChoiceLayout(object):
'password':str(self.proxy_password.text())}
else:
proxy = None
auto_connect = self.autoconnect_cb.isChecked()
self.network.set_parameters(host, port, protocol, proxy, auto_connect)
self.network.blockchain.set_checkpoint(self.checkpoint_height, self.checkpoint_value)