forked from p15670423/monkey
Agent: Use set comprehension instead of set(list())
This commit is contained in:
parent
acf877f3d8
commit
5e129fd137
|
@ -260,7 +260,7 @@ class InfectionMonkey:
|
|||
|
||||
def _build_server_list(self, relay_port: int):
|
||||
my_servers = set(map(str, self._opts.servers))
|
||||
relay_servers = set([f"{ip}:{relay_port}" for ip in get_my_ip_addresses()])
|
||||
relay_servers = {f"{ip}:{relay_port}" for ip in get_my_ip_addresses()}
|
||||
return my_servers.union(relay_servers)
|
||||
|
||||
def _build_master(self, relay_port: int):
|
||||
|
|
Loading…
Reference in New Issue