about summary refs log tree commit diff
diff options
context:
space:
mode:
-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{