add proxy settings to kivy GUI
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user