diff options
Diffstat (limited to 'include/py/homekit/util.py')
-rw-r--r-- | include/py/homekit/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/py/homekit/util.py b/include/py/homekit/util.py index f718291..7732d3b 100644 --- a/include/py/homekit/util.py +++ b/include/py/homekit/util.py @@ -41,7 +41,7 @@ def validate_ipv4_or_hostname(address: str, raise_exception: bool = False) -> bo def validate_ipv4(address: str) -> bool: try: - ipaddress.IPv6Address(address) + ipaddress.IPv4Address(address) return True except ipaddress.AddressValueError: return False |