We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8565db6 commit 7f40215Copy full SHA for 7f40215
nettacker/core/hostcheck.py
@@ -95,10 +95,7 @@ def resolve_quick(
95
if host.endswith("."):
96
host = host[:-1]
97
98
- if not valid_hostname(host):
99
- return False, None
100
-
101
- if "." not in host and not allow_single_label:
+ if not valid_hostname(host, allow_single_label=allow_single_label):
102
return False, None
103
104
def _call(use_ai_addrconfig: bool):
0 commit comments