Skip to content

Commit

Permalink
Typo in logging message when blocking incoming connections. (#153)
Browse files Browse the repository at this point in the history
The logging message should read "incoming" instead of "outgoing".
  • Loading branch information
MarcCote authored Oct 8, 2024
1 parent 8b92f59 commit 14504d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cyberbattle/simulation/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ def connect_to_remote_machine(
return ActionResult(reward=Penalty.BLOCKED_BY_LOCAL_FIREWALL, outcome=None)

if not self.__is_passing_firewall_rules(target_node.firewall.incoming, port_name):
logger.info(f"BLOCKED TRAFFIC: target node '{target_node_id}'" + f" is blocking outgoing traffic on port '{port_name}'")
logger.info(f"BLOCKED TRAFFIC: target node '{target_node_id}'" + f" is blocking incoming traffic on port '{port_name}'")
return ActionResult(reward=Penalty.BLOCKED_BY_REMOTE_FIREWALL, outcome=None)

target_node_is_listening = port_name in [i.name for i in target_node.services]
Expand Down

0 comments on commit 14504d7

Please sign in to comment.