diff --git a/source/managers/CommunicationManager.py b/source/managers/CommunicationManager.py index 5aeb224..1e44f3b 100644 --- a/source/managers/CommunicationManager.py +++ b/source/managers/CommunicationManager.py @@ -244,14 +244,14 @@ class CommunicationManager: interface_family, _, _, _, interface_address = interface match interface_family: - case socket.AF_INET: + case socket.AddressFamily.AF_INET: interface_host, interface_port = interface_address # check if it matches the address interface if host == interface_host: return True - case socket.AF_INET6: + case socket.AddressFamily.AF_INET6: interface_host, interface_port, interface_flowinfo, interface_scope = interface_address # check if it matches the address interface