URI: 
       tpass config to randomly selected server - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 1212982fec1b93332a736447cb6092472af945d2
   DIR parent fff922b5d70a3bd7ceba52785747ff08afb6acb4
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Sat, 20 Oct 2012 17:41:12 +0200
       
       pass config to randomly selected server
       
       Diffstat:
         M lib/interface.py                    |       7 ++++---
       
       1 file changed, 4 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/lib/interface.py b/lib/interface.py
       t@@ -42,12 +42,13 @@ proxy_modes = ['socks4', 'socks5', 'http']
        def pick_random_server():
            return random.choice( DEFAULT_SERVERS )
        
       -def pick_random_interface():
       +def pick_random_interface(config):
            servers = DEFAULT_SERVERS
            while servers:
                server = random.choice( servers )
                servers.remove(server)
       -        i = Interface({'server':server})
       +        config.set_key('server', server, False)
       +        i = Interface(config)
                if i.is_connected:
                    return i
            raise BaseException('no server available')
       t@@ -419,7 +420,7 @@ class WalletSynchronizer(threading.Thread):
                    self.interface = Interface(self.config)
                else:
                    print "Using random server..."
       -            self.interface = pick_random_interface()
       +            self.interface = pick_random_interface(self.config)
        
                if self.interface.is_connected:
                    print "Connected to " + self.interface.connection_msg