Skip to content
Snippets Groups Projects
Commit cff11f99 authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

add fqdn as possible myorigin value

parent 4911006c
No related branches found
No related tags found
No related merge requests found
......@@ -79,7 +79,11 @@ def check_relay(relay_host: str, relay_port: str, domain: str) -> tuple:
myorigin = out.replace("myorigin", "").strip()
# possible origin names
origins = set(
(domain or None, u.exec_cmd("hostname", log_output=False)[1] or None)
(
domain or None,
u.exec_cmd("hostname", log_output=False)[1] or None,
u.exec_cmd("hostname -f", log_output=False)[1] or None,
)
)
if myorigin not in origins:
u.warning('"myorigin" setting does not contain a valid domain')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment