Browse Source

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>
ssl-fingerprint-check
Luke Childs 5 years ago
committed by GitHub
parent
commit
cd199390e2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      electrum/network.py

4
electrum/network.py

@ -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}"

Loading…
Cancel
Save