Skip to content

Commit 4e7f035

Browse files
committed
feat: Add 'blocked_ip' to the list of parameters parsed as IP objects.
1 parent 87b6937 commit 4e7f035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netsecgame/game_components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ def from_dict(cls, data_dict: Dict[str, Any]) -> Action:
448448
params: Dict[str, Any] = {}
449449
for k, v in data_dict["parameters"].items():
450450
match k:
451-
case "source_host" | "target_host" | "blocked_host":
451+
case "source_host" | "target_host" | "blocked_host" | "blocked_ip":
452452
params[k] = IP.from_dict(v)
453453
case "target_network":
454454
params[k] = Network.from_dict(v)

0 commit comments

Comments
 (0)