Don't allow user to overwrite GNS3 docker environment variables

Fix #1098
This commit is contained in:
Julien Duponchelle committed 2017-07-20 15:37:56 +02:00
1 parent 8354beaa86
commit b33ba5f8ea
2 files changed
+11 -5

No files matched your search

+4 -1
View File
@@ -313,7 +313,10 @@ class DockerVM(BaseNode):
params["Env"].append("GNS3_VOLUMES={}".format(":".join(self._volumes)))
if self._environment:
params["Env"] += [e.strip() for e in self._environment.split("\n")]
for e in self._environment.split("\n"):
e = e.strip()
if not e.startswith("GNS3_"):
params["Env"].append(e)
if self._console_type == "vnc":
yield from self._start_vnc()