From 011819157bb484ee5c41cea2b96f32ced62cc58d Mon Sep 17 00:00:00 2001 From: Emile Date: Wed, 9 Oct 2019 12:20:54 +0200 Subject: reading the vpnRemoteAddress from the HOSTNAME env var --- src/docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docker.go b/src/docker.go index 5cc1411..b5398d8 100644 --- a/src/docker.go +++ b/src/docker.go @@ -46,7 +46,7 @@ func spawnCompanion(username string, accesscode string) { setupDockerCLI() sessionSalt := generateSessionSalt() - vpnRemoteAddress := "127.0.0.1" + vpnRemoteAddress := os.Getenv("HOSTNAME") // get the vpnRemoteport and increment it vpnRemotePort := currentVpnRemptePort -- cgit 1.4.1