about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authormaride <maride@darknebu.la>2018-09-04 15:53:28 +0200
committermaride <maride@darknebu.la>2018-09-04 15:53:28 +0200
commit17eb37c2838d9d786ec7d5a7f071cc83b4a3044e (patch)
tree508f5d9603eae278b95cedfbfceaffcfcd0cac12 /src
parent9d541b3cada610e8ead3ce1fb6c7175f69a38a2a (diff)
Un-hardcode VPN container base name
Diffstat (limited to 'src')
-rw-r--r--src/access.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/access.go b/src/access.go
index 6f9cd73..c22754c 100644
--- a/src/access.go
+++ b/src/access.go
@@ -15,6 +15,7 @@ import (
 
 const(
 	vpnHostNetworkName = "vpnhostnet"
+	vpnContainerName = "circus-vpn"
 )
 
 var vpnContainerID string
@@ -47,7 +48,7 @@ func startVPN() (err error) {
 
 	// Create container
 	resp, err := dockerCli.ContainerCreate(dockerCtx, &container.Config{
-		Image: "circus-vpn",
+		Image: vpnContainerName,
 		Env: []string{
 			fmt.Sprintf("remoteAddress=%s", *remoteAddress),
 			fmt.Sprintf("remotePort=%d", *remotePort),