tUse non-standard localhost port for server-string fallback (#6087) - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit cd199390e2d6376cdf9458c4a14906c564beea1c DIR parent 9e57ae630ba96e6d2c40288d2633aeca8d20764d HTML Author: Luke Childs <lukechilds123@gmail.com> Date: Fri, 17 Apr 2020 02:39:05 +0700 Use non-standard localhost port for server-string fallback (#6087) * Use non-standard localhost port for server-string fallback Co-authored-by: Luke Childs <lukechilds123@gmail.com> Diffstat: M electrum/network.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/electrum/network.py b/electrum/network.py t@@ -285,8 +285,8 @@ class Network(Logger, NetworkRetryManager[ServerAddr]): try: self.default_server = ServerAddr.from_str(self.default_server) except: - self.logger.warning('failed to parse server-string; falling back to localhost.') - self.default_server = ServerAddr.from_str("localhost:50002:s") + self.logger.warning('failed to parse server-string; falling back to localhost:1:s.') + self.default_server = ServerAddr.from_str("localhost:1:s") else: self.default_server = pick_random_server(allowed_protocols=self._allowed_protocols) assert isinstance(self.default_server, ServerAddr), f"invalid type for default_server: {self.default_server!r}"