network: fix get_servers to not modify default list
This commit is contained in:
parent
add3b36f32
commit
52d602b6c1
@ -438,7 +438,7 @@ class Network(PrintError):
|
|||||||
@with_recent_servers_lock
|
@with_recent_servers_lock
|
||||||
def get_servers(self):
|
def get_servers(self):
|
||||||
# start with hardcoded servers
|
# start with hardcoded servers
|
||||||
out = constants.net.DEFAULT_SERVERS
|
out = dict(constants.net.DEFAULT_SERVERS) # copy
|
||||||
# add recent servers
|
# add recent servers
|
||||||
for s in self.recent_servers:
|
for s in self.recent_servers:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user