Implement Host.is_hostname()
This commit is contained in:
parent
36d048713f
commit
f128cb3d04
1 changed files with 4 additions and 0 deletions
|
@ -20,3 +20,7 @@ class Host():
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def is_hostname(value: str):
|
||||||
|
return not (Host.is_ipv6(value) and Host.is_ipv4(value))
|
||||||
|
|
Loading…
Add table
Reference in a new issue