Updated documentation

This commit is contained in:
Marek Wolan
2023-07-06 10:34:27 +01:00
parent b9549497d2
commit d9394d274d
2 changed files with 1 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ class AccessControlList:
else:
return False
def is_blocked(self, _source_ip_address, _dest_ip_address, _protocol, _port):
def is_blocked(self, _source_ip_address: str, _dest_ip_address: str, _protocol: str, _port: str) -> bool:
"""
Checks for rules that block a protocol / port.

View File

@@ -78,7 +78,6 @@ class HardCodedACLAgent(HardCodedAgentSessionABC):
dest_node_address = nodes[dest_node_id].ip_address
protocol = ier.get_protocol() # e.g. 'TCP'
port = ier.get_port()
# I can't find where this function 'get_relevant_rules' is defined...
matching_rules = acl.get_relevant_rules(source_node_address, dest_node_address, protocol, port)
return matching_rules