From bb45b144e87c421359581f4b56deba33e20a0798 Mon Sep 17 00:00:00 2001 From: Connor Nelson Date: Wed, 24 Jan 2024 17:22:20 -0700 Subject: [PATCH] Workspace: Normalize dots in hostname --- dojo_plugin/api/v1/docker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dojo_plugin/api/v1/docker.py b/dojo_plugin/api/v1/docker.py index 34900fb27..76d43da65 100644 --- a/dojo_plugin/api/v1/docker.py +++ b/dojo_plugin/api/v1/docker.py @@ -68,7 +68,7 @@ def start_container(user, dojo_challenge, practice): hostname = "~".join((["practice"] if practice else []) + [ dojo_challenge.module.id, - re.sub("[\s-]+", "-", re.sub("[^a-z0-9\s-]", "", dojo_challenge.name.lower())) + re.sub("[\s.-]+", "-", re.sub("[^a-z0-9\s.-]", "", dojo_challenge.name.lower())) ])[:64] devices = []