about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-10-07 12:18:32 +0200
committerEmile <hanemile@protonmail.com>2019-10-07 12:18:32 +0200
commitfc1f7cce72af419629e46cf6b6083b356910a6a5 (patch)
treedac973436489a2a196d963ff8d83182c64dbfa98 /src
parent718913571bfbcacb411313c173edcb016e3a211b (diff)
added the command line arguments
Diffstat (limited to 'src')
-rw-r--r--src/docker.go10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/docker.go b/src/docker.go
index 4c0c48f..4046146 100644
--- a/src/docker.go
+++ b/src/docker.go
@@ -2,6 +2,7 @@ package main
 
 import (
 	"context"
+	"fmt"
 	"log"
 	"os"
 
@@ -41,15 +42,8 @@ func spawnCompanion(username string, accesscode string) string {
 	setupDockerCLI()
 
 	Config := &container.Config{
-		// companion seed
 		Image: "circus-companion:latest",
-		//
-		// username
-		// accesscode
-		// sessionsalt
-		// vpnremote address
-		// vpnrempte port
-		Cmd: []string{"-username", username, "-accesscode", accesscode},
+		Cmd:   []string{fmt.Sprintf("-username %s -accesscode %s -sessionSalt %s -vpnRemoteAddress %s -vpnRemotePort %s", username, accesscode, sessionSalt, vpnRemoteAddress, vpnRemotePort)},
 	}
 
 	HostConfig := &container.HostConfig{