Formatting fail

This commit is contained in:
Daniel Goldberg 2019-11-03 14:51:33 -05:00
parent 37704e3eeb
commit 0044eb393b
1 changed files with 2 additions and 3 deletions

View File

@ -182,9 +182,8 @@ class InfectionMonkey(object):
monkey_tunnel.set_tunnel_for_host(machine) monkey_tunnel.set_tunnel_for_host(machine)
if self._default_server: if self._default_server:
if self._network.on_island(self._default_server): if self._network.on_island(self._default_server):
machine.set_default_server(get_interface_to_target(machine.ip_addr) + machine.set_default_server(get_interface_to_target(machine.ip_addr) + (
( ':' + self._default_server_port if self._default_server_port else ''))
':' + self._default_server_port if self._default_server_port else ''))
else: else:
machine.set_default_server(self._default_server) machine.set_default_server(self._default_server)
LOG.debug("Default server for machine: %r set to %s" % (machine, machine.default_server)) LOG.debug("Default server for machine: %r set to %s" % (machine, machine.default_server))