Implement Host.is_hostname()

This commit is contained in:
XANTRONIX Development 2024-12-04 16:32:23 -05:00
parent 36d048713f
commit f128cb3d04

View file

@ -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))