forked from p15670423/monkey
Agent: Simplify logic in _build_server_list() in monkey/infection_monkey/monkey.py
Co-authored-by: VakarisZ <36815064+VakarisZ@users.noreply.github.com>
This commit is contained in:
parent
01f1d62272
commit
4f3a8a5b2f
|
@ -262,7 +262,7 @@ class InfectionMonkey:
|
|||
return agent_event_serializer_registry
|
||||
|
||||
def _build_server_list(self, relay_port: int):
|
||||
my_servers = [str(s) for s in self._opts.servers]
|
||||
my_servers = map(str, self._opts.servers)
|
||||
relay_servers = [f"{ip}:{relay_port}" for ip in get_my_ip_addresses()]
|
||||
return my_servers + relay_servers
|
||||
|
||||
|
|
Loading…
Reference in New Issue