From 0592e0a7901f3dcf0b961726a2d6aed843ec4b4f Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Fri, 23 Sep 2022 08:45:48 -0400 Subject: [PATCH] Island: Use IPv4Address in LocalMonkeyRunService --- monkey/monkey_island/cc/services/run_local_monkey.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/services/run_local_monkey.py b/monkey/monkey_island/cc/services/run_local_monkey.py index 36c348b85..6455399e3 100644 --- a/monkey/monkey_island/cc/services/run_local_monkey.py +++ b/monkey/monkey_island/cc/services/run_local_monkey.py @@ -2,6 +2,7 @@ import logging import platform import stat import subprocess +from ipaddress import IPv4Address from pathlib import Path from shutil import copyfileobj from typing import Sequence @@ -19,7 +20,7 @@ class LocalMonkeyRunService: self, data_dir: Path, agent_binary_repository: IAgentBinaryRepository, - ip_addresses: Sequence[str], + ip_addresses: Sequence[IPv4Address], ): self._data_dir = data_dir self._agent_binary_repository = agent_binary_repository