diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2024-02-17 03:51:08 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2024-02-17 03:51:08 +0300 |
commit | c5e69cf2c9b89d546ad7a4f6bb26aef47021dd50 (patch) | |
tree | 61ea0185392909cf9d0198c51f439a2ee01e8089 /include/py/homekit/util.py | |
parent | 0ce2e41a2bad790c5232fafb4b6ed631ca8cd957 (diff) |
ipcam_ntp_util (wip: only supports hikvision cams for now)
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 |