diff --git a/backend/OBSController.py b/backend/OBSController.py index 73b5d18..44d605c 100644 --- a/backend/OBSController.py +++ b/backend/OBSController.py @@ -26,9 +26,8 @@ def validate_ip(self, host: str): # previous implementations. Again, probably the wrong thing # long-term, but implementing this way to mitigate risk while we're # in a bad-push state. - if not addr.version == ipaddress.IPv4Address.version: + if addr.version == 6: raise ValueError() - return True except ValueError: return False