From 17eb37c2838d9d786ec7d5a7f071cc83b4a3044e Mon Sep 17 00:00:00 2001 From: maride Date: Tue, 4 Sep 2018 15:53:28 +0200 Subject: Un-hardcode VPN container base name --- src/access.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/access.go') 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), -- cgit 1.4.1