diff options
author | maride <maride@darknebu.la> | 2018-09-04 15:53:28 +0200 |
---|---|---|
committer | maride <maride@darknebu.la> | 2018-09-04 15:53:28 +0200 |
commit | 17eb37c2838d9d786ec7d5a7f071cc83b4a3044e (patch) | |
tree | 508f5d9603eae278b95cedfbfceaffcfcd0cac12 | |
parent | 9d541b3cada610e8ead3ce1fb6c7175f69a38a2a (diff) |
Un-hardcode VPN container base name
-rw-r--r-- | src/access.go | 3 |
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), |