Browse Source

fix: [text UI] changing proxy

seed_v14
SomberNight 7 years ago
parent
commit
cf6d6608eb
  1. 4
      gui/text.py

4
gui/text.py

@ -9,6 +9,7 @@ import curses, datetime, locale
from decimal import Decimal
import getpass
import electrum
from electrum.util import format_satoshis, set_verbosity
from electrum.bitcoin import is_address, COIN, TYPE_ADDRESS
from electrum import Wallet, WalletStorage
@ -395,7 +396,8 @@ class ElectrumGui:
except Exception:
self.show_message("Error:" + server + "\nIn doubt, type \"auto-connect\"")
return False
proxy = self.parse_proxy_options(out.get('proxy')) if out.get('proxy') else None
if out.get('server') or out.get('proxy'):
proxy = electrum.network.deserialize_proxy(out.get('proxy')) if out.get('proxy') else proxy_config
self.network.set_parameters(host, port, protocol, proxy, auto_connect)
def settings_dialog(self):

Loading…
Cancel
Save