Agent: Fix: Pass port as int
This commit is contained in:
parent
d335c4081a
commit
3516fa1fec
|
@ -189,7 +189,7 @@ class InfectionMonkey:
|
||||||
self._relay = TCPRelay(
|
self._relay = TCPRelay(
|
||||||
relay_port,
|
relay_port,
|
||||||
IPv4Address(self._cmd_island_ip),
|
IPv4Address(self._cmd_island_ip),
|
||||||
self._cmd_island_port,
|
int(self._cmd_island_port),
|
||||||
client_disconnect_timeout=config.keep_tunnel_open_time,
|
client_disconnect_timeout=config.keep_tunnel_open_time,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -427,7 +427,7 @@ class InfectionMonkey:
|
||||||
|
|
||||||
def _close_tunnel(self):
|
def _close_tunnel(self):
|
||||||
logger.info(f"Quitting tunnel {self._cmd_island_ip}")
|
logger.info(f"Quitting tunnel {self._cmd_island_ip}")
|
||||||
notify_disconnect(self._cmd_island_ip, self._cmd_island_port)
|
notify_disconnect(self._cmd_island_ip, int(self._cmd_island_port))
|
||||||
|
|
||||||
def _send_log(self):
|
def _send_log(self):
|
||||||
monkey_log_path = get_agent_log_path()
|
monkey_log_path = get_agent_log_path()
|
||||||
|
|
Loading…
Reference in New Issue