diff --git a/lib/nntp/tiny/host.py b/lib/nntp/tiny/host.py index 29eb2c7..f4eede5 100644 --- a/lib/nntp/tiny/host.py +++ b/lib/nntp/tiny/host.py @@ -20,3 +20,7 @@ class Host(): return False return True + + @staticmethod + def is_hostname(value: str): + return not (Host.is_ipv6(value) and Host.is_ipv4(value))